int rangeBitwiseAnd(int m, int n) { while (m < n) { n &= n - 1; } return n; }
C
© The Algorithms 2021