File size: 109 Bytes
b2a430f
 
 
 
 
1
2
3
4
5
6
impl Solution {
    pub fn count_odds(low: i32, high: i32) -> i32 {
        (high + 1) / 2 - low / 2
    }
}