1class Solution {2 public int countOdds(int low, int high) {3 if (low % 2 == 0 && high % 2 == 0) {4 return (high - low) / 2;5 }6 return (high - low) / 2 + 1;7 }8}
WPM •0 •0
ACC •0 •0
TIME •0