Skip to content

Commit

Permalink
Time: 0 ms (100.00%), Space: 5.8 MB (92.26%) - LeetHub
Browse files Browse the repository at this point in the history
  • Loading branch information
Dipendra-Raghav committed Feb 13, 2023
1 parent b417281 commit ad00464
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class Solution {
public:
int countOdds(int l, int h) {
return ((h + 1) / 2) - (l / 2);
}
};

0 comments on commit ad00464

Please sign in to comment.