Dsa
Bit Manipulation
Easy
Bitwise AND of Range
Write a program to compute the bitwise AND of all the numbers in the range [L, R] (inclusive). You are given two integers L and R (0 <= L <= R <= 10^6). Print the result of the bitwise AND operation.
Example:
Input:
5 7
Output:
4
Key concepts
bit_manipulationrange
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