Loading...
You are given two integers left and right. Return the bitwise AND of every integer in the inclusive range [left, right].
left
right
0 <= left <= right <= 2^31 - 1
The integers in the range are 5, 6 and 7. Their bitwise AND is 4.
The range contains only 0. The bitwise AND of 0 with itself is 0.
Every bit position has a 0 somewhere in this large range, so the AND is 0.