Hard
Power of Two
Read a positive integer n and print True if it is a power of two. Hint: for powers of two, n & (n − 1) is 0.
Input
One integer n ≥ 1.
Output
True or False.
Sample 1
Input
1
Output
True
Sample 2
Input
2
Output
True
Output appears here