mirror of
https://github.moeyy.xyz/https://github.com/TheAlgorithms/C.git
synced 2023-10-11 15:56:24 +08:00
2215758b3b
- 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;
|
|
} |