Thanks to visit codestin.com Credit goes to github.com
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 fd08e46 commit 6387b22Copy full SHA for 6387b22
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