mirror of
https://github.com/TheAlgorithms/C
synced 2025-04-21 04:42:49 +03:00

- Adding Divide Two Integers (29.c) - Adding Plus One (66.c) - Adding Bitwise AND of Numbers Range (201.c) - Readme updated
6 lines
94 B
C
6 lines
94 B
C
int rangeBitwiseAnd(int m, int n){
|
|
while (m < n) {
|
|
n &= n-1;
|
|
}
|
|
return n;
|
|
} |