Dsa
Bit Manipulation
Medium
Power of Two Check
Write a program that checks if a given integer is a power of two using bit manipulation techniques. Return 'Yes' if it is, otherwise return 'No'.
Input:
A single integer n.
Output:
'Yes' or 'No'.
Example:
Input:
16
Output:
Yes
Key concepts
bit_manipulationpowers
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now