BETA
Reverse Bits
Submissions: 5330   Accuracy:

51.18%

  Difficulty: Easy

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:
For each test case, print the reverse of integer in newline.

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


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