Check if a given number is a power of two using bitwise operations.
HardProblem Statement
Check if a given number is a power of two using bitwise operations.
Sample Input
8
Sample Output
true
Limits
Time: 2s · Memory: 256 MB
Check if a given number is a power of two using bitwise operations.
8
true
Time: 2s · Memory: 256 MB