mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-04-23 22:09:37 +00:00
8 lines
101 B
C
8 lines
101 B
C
int rangeBitwiseAnd(int m, int n)
|
|
{
|
|
while (m < n)
|
|
{
|
|
n &= n - 1;
|
|
}
|
|
return n;
|
|
} |