摘要: #回文数#Method1:将整数转置和原数比较,一样就是回文数;负数不是回文数#这里反转整数时不需要考虑溢出,但不代表如果是C/C++等语言也不需要考虑class Solution(object): def isPalindrome(self, x): """ :type x: int :rtype 阅读全文
posted @ 2016-10-13 10:40 火金队长 阅读(329) 评论(0) 推荐(0) 编辑