Dsa
Bit Manipulation
Easy
Reverse Bits
Write a program that reverses the bits of a given integer. The input consists of a single integer. You should print the integer representing the reversed bits.
Example:
Input:
6
Output:
3
Key concepts
bit_manipulationreversal
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