Files
C/leetcode/src/201.c
2020-05-29 20:23:24 +00:00

8 lines
101 B
C

int rangeBitwiseAnd(int m, int n)
{
while (m < n)
{
n &= n - 1;
}
return n;
}