BETA

Difficulty Level: Easy

Submissions: 3205 Accuracy:

46.18%

Reverse Bits

Reverse a 32 bit given number.
Input:
The first line of input consists number of the test cases. Each test case contains a single 32 bit integer.

Output:
Print the reverse of integer.

Constraints:
1<=T<=100
0<=x<=4294967295

Example:

Input:
2
1
5

Output:
2147483648
2684354560

Explanation:
In first cases

00000000000000000000000000000001 =1
10000000000000000000000000000000 =2147483648

** For More Input/Output Examples Use 'Expected Output' option **

Author: bhawnamait

Set Default Code

					   
It is recommended to 'Compile & Test' your code before clicking 'Submit'!

Compilation/Execution Result:

Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.