1523. Count Odd Numbers in an Interval Range
class Solution {
public int countOdds(int low, int high) {
int count = (high-low)/2;
if(high%2 ==0 && low%2 == 0){}
else count +=1;
return count;
}
}
1523. Count Odd Numbers in an Interval Range
class Solution {
public int countOdds(int low, int high) {
int count = (high-low)/2;
if(high%2 ==0 && low%2 == 0){}
else count +=1;
return count;
}
}