![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
从化北
懒惰才是人类进步的阶梯呢!
展开
-
LeetCode题库_简单题
回文数 leetcode 题目链接 算法: 反转一半: - 负数不可能是回文 - 个位数一定是回文 - 0是回文 问题: - 如何反转一半的数字 算法实例: bool isPalindrome(int x) { if(x < 0 || (x % 10 == 0 && x != 0)){//负数 或者 个位数为0的数字一定不为回文数 return fa...原创 2019-01-25 20:10:36 · 310 阅读 · 0 评论 -
整数反转
原创 2019-01-26 20:25:06 · 86 阅读 · 0 评论