Question bank › Bit Manipulation
Dsa Bit Manipulation Medium

Bitwise AND Consecutive

Given two integers L and R (L <= R), compute the bitwise AND of all integers between L and R inclusive. Print the result. Example: Input: 5 7 Output: 4 (5 & 6 & 7 is 4.)

Key concepts

bit_manipulationconsecutive_integers

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.