摘要:
题目:Determine whether an integer is a palindrome. Do this without extra space.提示:此题需要注意负数不是回文数。另外,我一开始的思路是把输入数字通过整除和取模运算把它倒转过来与原数字进行比较(不用考虑倒转过来的数字会不会溢出... 阅读全文
posted @ 2015-08-24 13:48
__Neo
阅读(181)
评论(0)
推荐(0)
摘要:
题目:Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see below a... 阅读全文
posted @ 2015-08-24 11:06
__Neo
阅读(165)
评论(0)
推荐(0)
摘要:
题目:Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321Have you thought about this?Here are some good questions to ... 阅读全文
posted @ 2015-08-24 10:13
__Neo
阅读(156)
评论(0)
推荐(0)


浙公网安备 33010602011771号