Problem Description

Check if a number is a power of 2 or not using only bitwise operators. (Hint: n & (n-1) == 0). Explain the logic.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next