LeetCode Reverse Integer Solution

Senior Brogrammer
4 min readMay 14, 2022

The Reverse Integer problem on LeetCode is quite popular with several dislikes due to weird edge cases, however a great problem to mess around with simple integer math.

Uno Reverse | Credit: JMAG 08 on Wikimedia (Creative Commons License)

Note: I don’t solve this completely handling the edge cases of not being able to store 64 bit integers. I saw the solution and just felt that the problem was testing if I had that type of knowledge rather than general problem solving with…

--

--