Problem
Given two integersleft and right that represent the range [left, right], return the bitwise AND of all numbers in this range, inclusive.
Examples
Constraints
- 0 <= left <= right <= 2^31 - 1
Tested Python solution for LeetCode 201 with 18 pytest cases. Generate a practice environment with lcpy.
left and right that represent the range [left, right], return the bitwise AND of all numbers in this range, inclusive.