leetcodeSolution to some Leetcode problems written in C++ |
git clone git://git.dimitrijedobrota.com/leetcode.git |
Log | Files | Refs | README | LICENSE |
2798.cpp (207B)
0 class Solution { 1 public: 2 int numberOfEmployeesWhoMetTarget(const vector<int> &hours, int target) const { 3 return count_if(begin(hours), end(hours), [&](int n) { return n >= target; }); 4 } 5 };