Return True if n is a power of two (1, 2, 4, 8, 16, ...) and False otherwise. Do it without a loop.
Example 1
Input:
is_power_of_two(16)
Output:
True
Example 2
Input:
is_power_of_two(6)
Output:
False
-2**62 <= n < 2**62No results yet
Run your code to check it against the examples, or submit to run every test.