leetcode
leetcode copied to clipboard
Update 007_Reverse_Integer.py
This is correct solution. Earlier solution was incorrect.
Hi @mustafanw Thank you for contribution!
Note that almost all Python solutions are based on Python2. These solutions may fail on Python3.
I have checked 07 Python solution. It passed on Python2 and failed on Python3. So, this is not a solution problem but compatibility problem.
In this case, I suggest add a new solution in Python 3 rather replace existing solution.