Skip to content

Commit 1371de2

Browse files
authored
Fix 067_Add_Binary for Python 3 (#35)
* Fix 067_Add_Binary.py for Python, @yuchenliu15
1 parent 0c59028 commit 1371de2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/067_Add_Binary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def addBinary(self, a, b):
5353
if (lsb + pos) >= 0:
5454
curr += int(b[pos])
5555
res = str(curr % 2) + res
56-
curr /= 2
56+
curr //= 2
5757
pos -= 1
5858
if curr == 1:
5959
res = '1' + res

0 commit comments

Comments
 (0)