Reverse the bits of an
32 bit unsigned integer A.
First and only argument of input contains an integer A
return a single unsigned integer denoting minimum xor value
0 <= A < 2^32
For Examples :
Example Input 1: A = 0 Example Output 1: 0 Explanation 1: 00000000000000000000000000000000 => 00000000000000000000000000000000 Example Input 2: A = 3 Example Output 2: 3221225472 Explanation 2: 00000000000000000000000000000011 => 11000000000000000000000000000000
Since java does not have unsigned int, use long
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a doubt? Checkout Sample Codes for more details.