LeetCode Weekly Contest 356 Solutions
Counting Employees Meeting Target Hours This problem requires counting employees whose work hours meet or exceed a target value. A simple linear scan suffices. class Solution { public: int numberOfEmployeesWhoMetTarget(vector<int>& hours, int target) { int count = 0; for (int h : hours) {...