题目:
![](https://i-blog.csdnimg.cn/direct/9b31d18c925b4d749f92194901967474.png)
题解:
python
class Solution:
def rangeBitwiseAnd(self, m: int, n: int) -> int:
while m < n:
# 抹去最右边的 1
n = n & (n - 1)
return n