leetcode icon indicating copy to clipboard operation
leetcode copied to clipboard

Update 007_Reverse_Integer.py

Open mustafanw opened this issue 4 years ago • 1 comments

This is correct solution. Earlier solution was incorrect.

mustafanw avatar Dec 12 '21 12:12 mustafanw

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.

qiyuangong avatar Dec 13 '21 02:12 qiyuangong