Bit Manipulation - Power of Two
Consider two approaches to check if a number is a power of two:
Approach 1: Repeated division by 2 until 1 or non-divisible.
Approach 2: Bit manipulation using n & (n - 1).
When is Approach 1 preferable over Approach 2?
