Skip to content

Commit 4253d53

Browse files
authored
Merge pull request #1108 from GraydenH/patch-3
Update 190-Reverse-Bits.py
2 parents 87fbbaa + 6387b22 commit 4253d53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: python/190-Reverse-Bits.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ def reverseBits(self, n: int) -> int:
33
res = 0
44
for i in range(32):
55
bit = (n >> i) & 1
6-
res = res | (bit << (31 - i))
6+
res += (bit << (31 - i))
77
return res

0 commit comments

Comments
 (0)