摘要: Determine whether an integer is a palindrome. Do this without extra space. Solution: class Solution {public: bool isPalindrome(int x) { if(x<0|| (x!=0 阅读全文
posted @ 2017-03-01 21:09 DevinGu 阅读(152) 评论(0) 推荐(0)
摘要: Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 Note:The input is assumed to be a 32-bit signed integer. Yo 阅读全文
posted @ 2017-03-01 20:53 DevinGu 阅读(190) 评论(0) 推荐(0)