摘要: 反转之后如果溢出则做逆运算不成立 new = old * 10 + x % 10 // 正序运算 old = (new - x % 10)/10 // 逆序运算 代码 class Solution { public int reverse(int x) { // 最终要返回的反转数 int rev 阅读全文
posted @ 2020-09-06 22:57 于大宝执剑江湖 阅读(115) 评论(0) 推荐(0)