Return the bitwise AND of every number from left to right (both included).
The starter code ands the numbers one by one. It is correct but far too slow for big ranges.
Example 1
Input:
and_of_range(5, 7)
Output:
4
Example 2
Input:
and_of_range(0, 0)
Output:
0
0 <= left <= right < 2**31No results yet
Run your code to check it against the examples, or submit to run every test.