Skip to content

Commit

Permalink
Merge pull request #93 from jxie0755/patch-2
Browse files Browse the repository at this point in the history
Python 3 compatibility
  • Loading branch information
kamyu104 authored Jan 24, 2018
2 parents 42500c8 + 424ca6f commit 4a946a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Python/reverse-integer.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ def reverse(self, x):
result = 0
while x:
result = result * 10 + x % 10
x /= 10
x //= 10
return result if result <= 0x7fffffff else 0 # Handle overflow.

def reverse2(self, x):
"""
:type x: int
Expand Down

0 comments on commit 4a946a8

Please sign in to comment.