170. Reverse Bits

Given a 32-bit integer n. Reverse the bits of the number and return the result.
Example 1
Input: n = 43261596
Output: 964176192
Explanation: The bits of the number are reversed.
Example 2
Input: n = 2147483644
Output: 1073741822
Explanation: Reversal of the 32-bit representation.
bit manipulationeasy
JavaScript
Loading...
Line 1, Char 1