Question bank › Bit Manipulation
Dsa Bit Manipulation Easy

Reverse Binary Representation

Write a program that takes an integer and reverses its binary representation as a string, then converts it back to an integer. Leading zeros in the binary representation should not be counted. Example: Input: 5 Output: 5

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
Part of Praxari's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.