leetcode

Solution to some Leetcode problems written in C++
git clone git://git.dimitrijedobrota.com/leetcode.git
Log | Files | Refs | README | LICENSE

1523.cpp (123B)


      1 class Solution {
      2   public:
      3     int countOdds(int low, int high) { return (high - low) / 2 + ((low % 2) | (high % 2)); }
      4 };