Power of 2
CodeChefOpen on judge ↗
Problem Statement Given a number , find whether it is a power of 2 or not NOTE There is a limit in Source code. Input The first Line contains T , the no of test cases followed by T lines. Each line has a integer X Output Output has T lines , with each line indicating whethet the number is a power of 2 or not(print 1 if it a power of two else print 0) Example Input 4 4 0 6 8 Output 1 0
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start