Back to Questions

The Power of Two

72.5K viewsAsked at Uber
Easy

Question Explain

Given an integer $n$, return true if it is a power of two. Solve using a single Bit Manipulation operation ($O(1)$).

Start Trying This Question Simulation

Practice answering orally or with text to get instant AI feedback.

Practice with This Question