Objective
Implement a function that tells you whether an unsigned integer is an exact power of two.
Steps
$ is_power_of_2(8)
1
$ is_power_of_2(6)
0
$ is_power_of_2(0)
0
$ is_power_of_2(1024)
1
Expected files
Allowed functions
None. Write every helper yourself.

Objective
Implement a function that tells you whether an unsigned integer is an exact power of two.
Steps
$ is_power_of_2(8)
1
$ is_power_of_2(6)
0
$ is_power_of_2(0)
0
$ is_power_of_2(1024)
1
Expected files
Allowed functions
None. Write every helper yourself.

Tests
Run the tests to grade your code