Palindrome numbers
Submissions: 4430   Accuracy:

39.76%

  Difficulty: Easy   Marks: 2

Check if binary representation of a number is palindrome

Input:
The first line contains an integer T, depicting total number of test cases. 
Then following T lines contains an integer N.


Output:
Each seperate line showing output 0(False) or 1 (True).


Constraints:
1 ≤ T ≤ 30
1 ≤ N ≤ 10
18


Example:
 Input:
2

999
17

Output:
0

1

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

Author: abhiraj26


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



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


to report an issue on this page.