leetcode

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

2798.cpp (207B)


      1 class Solution {
      2   public:
      3     int numberOfEmployeesWhoMetTarget(const vector<int> &hours, int target) const {
      4         return count_if(begin(hours), end(hours), [&](int n) { return n >= target; });
      5     }
      6 };