Treat n as a 32-bit unsigned number, reverse the order of its 32 bits and return the new number. For n = 1 (31 zeros and then a 1) the answer is 2147483648 (a 1 and then 31 zeros).
Example 1
Input:
reverse_bits(1)
Output:
2147483648
1 becomes 1 followed by 31 zeros.
Example 2
Input:
reverse_bits(43261596)
Output:
964176192
0 <= n < 2**32No results yet
Run your code to check it against the examples, or submit to run every test.