Maybe allow signed integer overflow?
145

So I just completed this problem:
https://leetcode.com/problems/reverse-integer/

I get that most of the time integer overflow is not good, but in this case I actually wanted to use it to my advantage.
Now instead of doing everything with just the inputted signed number, I had to use copy it to an unsigned number and perform extra checks that could've been avoided. This means that my solution used more memory and time than it could have.

So I'm not if this is feasible, but could you please allow the use signed integer overflow?

Comments (1)