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.
2 parents 87fbbaa + 6387b22 commit 4253d53Copy full SHA for 4253d53
python/190-Reverse-Bits.py
@@ -3,5 +3,5 @@ def reverseBits(self, n: int) -> int:
3
res = 0
4
for i in range(32):
5
bit = (n >> i) & 1
6
- res = res | (bit << (31 - i))
+ res += (bit << (31 - i))
7
return res
0 commit comments