Skip to content

Commit b42586d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c76ec7d commit b42586d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bit_manipulation/add_binary.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ def addBinary(a: str, b: str) -> str:
1414
j -= 1
1515

1616
result.append(str(total % 2)) # current bit
17-
carry = total // 2 # update carry
17+
carry = total // 2 # update carry
1818

19-
return ''.join(reversed(result)) # reverse the result to get correct order
19+
return "".join(reversed(result)) # reverse the result to get correct order
2020

2121

2222
# Example usage

0 commit comments

Comments
 (0)