201. Bitwise AND of Numbers Range
Practice Bitwise AND of Numbers Range for free on NudgeCode: Medium, Bit Manipulation pattern. Write it in Python or JavaScript, run the tests in your browser, and ask for a hint when you are stuck.
Return the bitwise AND of every integer from left to right, both included.
Example
left = 5, right = 7 -> 4
left = 1, right = 2147483647 -> 0
Constraints
- 0 <= left <= right <= 2^31 - 1