Compute the bitwise AND of every integer in the range [left, right]
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Other
Overview: Return the bitwise AND of every integer in an inclusive range [left, right] where the values go up to 2^31 - 1. It tests reasoning about the binary form of consecutive numbers and finding a method that runs in a few dozen steps, since looping over the range is far too slow.