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 4b39cb8 commit ea09762Copy full SHA for ea09762
src/me/ramswaroop/bits/ReverseBits.java
@@ -49,7 +49,7 @@ public static int getNumberByReversingBitsV1(int n) {
49
if ((n & 1) == 1) {
50
reverseNum |= 1 << 31 - i;
51
}
52
- n >>= 1;
+ n >>>= 1;
53
i++;
54
55
0 commit comments