Module: Bit Operations (Python)


Problem

8/13

Checking if a number is a power of two

Problem

Given a number x. Check if a number is a power of two.
 
Input Output
2 1
3 0