Skip to content

Commit 8bcb6d4

Browse files
authored
Update add_binary.py
1 parent d24f030 commit 8bcb6d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

string/add_binary.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ def add_binary(a, b):
2121
c += ord(b[j]) - zero
2222
j -= 1
2323
s = chr(c % 2 + zero) + s
24+
# c //= 2 for python3
2425
c /= 2
2526
return s

0 commit comments

Comments
 (0)