喜刷刷

Showing posts with label overflow. Show all posts
Showing posts with label overflow. Show all posts
Friday, November 21, 2014

[LeetCode] Palindrome Number

›
Determine whether an integer is a palindrome. Do this without extra space. 思路: 检查回文最直接的方法是将整数转换成字符串,然后用Valid Palindrome那题的算法来检查。但是这么做需要有...

[LeetCode] Reverse Integer

›
Reverse digits of an integer. Example1:  x = 123, return 321 Example2:  x = -123, return -321 思路: 凡是整数操作类的题目,都需要注意几类情况: 1. 整数...
›
Home
View web version

About Me

Yanbing Shi
View my complete profile
Powered by Blogger.