Bit Manipulation - Power of Two
You need to determine if a given positive integer is a power of two. Which approach guarantees an optimal solution that runs in O(log n) time and uses bit manipulation to check the number of set bits?
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions