We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c59028 commit 1371de2Copy full SHA for 1371de2
python/067_Add_Binary.py
@@ -53,7 +53,7 @@ def addBinary(self, a, b):
53
if (lsb + pos) >= 0:
54
curr += int(b[pos])
55
res = str(curr % 2) + res
56
- curr /= 2
+ curr //= 2
57
pos -= 1
58
if curr == 1:
59
res = '1' + res
0 commit comments