TheAlgorithms-C/leetcode/src/201.c
dedsinQ 2215758b3b - Adding Roman to Integer (13.c)
- Adding Divide Two Integers (29.c)
- Adding Plus One (66.c)
- Adding Bitwise AND of Numbers Range (201.c)
- Readme updated
2019-10-26 16:06:02 +02:00

6 lines
94 B
C

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