Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CPP/NNumber_of_Employees_Who_Met_the_Target.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class Solution {
public:
int numberOfEmployeesWhoMetTarget(vector<int>& hours, int target) {
return count_if(hours.begin(),hours.end(),[target](int hour){
return hour >= target;
}
);
}
};