7.Reverse Integer (INT; Overflow)
摘要:
Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321思路:要注意溢出。用以下做法,会溢出。class Solution {public: int reverse(in... 阅读全文
posted @ 2015-07-15 15:58 joannae 阅读(154) 评论(0) 推荐(0) 编辑