Bit Manipulation - Power of Two
Suppose you want to check if a number is a power of two but the input can be negative or zero, and you want to handle 64-bit integers efficiently. Which modification to the bit manipulation approach is correct?
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions