摘要: Given a signed 32-bit integer x, return x with its digits reversed. If reversing x causes the value to go outside the signed 32-bit integer range [-2^ 阅读全文
posted @ 2014-11-27 09:04 Grandyang 阅读(34377) 评论(13) 推荐(1)
摘要: unsigned int 0~4294967295 int -2147483648~2147483647 unsigned long 0~4294967295 long -2147483648~2147483647long long的最大值:9223372036854775807lon... 阅读全文
posted @ 2014-11-27 08:35 Grandyang 阅读(1120) 评论(0) 推荐(0)
摘要: Implement the myAtoi(string s) function, which converts a string to a 32-bit signed integer (similar to C/C++'s atoi function). The algorithm for myAt 阅读全文
posted @ 2014-11-27 07:35 Grandyang 阅读(29268) 评论(4) 推荐(2)
摘要: Given an integer x, return true if x is a palindrome, and false otherwise. Example 1: Input: x = 121 Output: true Explanation: 121 reads as 121 from l 阅读全文
posted @ 2014-11-27 02:28 Grandyang 阅读(22085) 评论(8) 推荐(0)
Fork me on GitHub