LeetCode 7. Reverse Integer
Created at 2018-01-04 Updated at 2018-01-21 Category LeetCode
Given a 32-bit signed integer, reverse digits of an integer.
Assume we are dealing with an environment which could only hold integers within the 32-bit signed integer range. For the purpose of this problem, assume that your function returns 0 when the reversed integer overflows.
If the input is smaller than zero, make it positive.