Reverse all bits of a number
Reverse each bit of a binary number
ex: 1101 -> 0010
Solution: XOR 1 against every bit in the number
Last updated
Was this helpful?
Reverse each bit of a binary number
ex: 1101 -> 0010
Solution: XOR 1 against every bit in the number
Last updated
Was this helpful?