MaskRay/LeetCode

"7.Reserve Integer" may have changed the problem.

mxm43 opened this issue · 1 comments

mxm43 commented

Reverse digits of an integer.

Example1: x = 123, return 321
Example2: x = -123, return -321

Note:
The input is assumed to be a 32-bit signed integer. Your function should return 0 when the reversed integer overflows.

Your solution doesn't deal with overflows. Please make a update.

Fixed