2798. Number of Employees Who Met the Target
1 2 3 4 5 6 7 8 9 10 11
| class Solution { public int numberOfEmployeesWhoMetTarget(int[] hours, int target) { int count = 0; for (int hour : hours) { if (hour >= target) { count++; } } return count; } }
|
References
2798. Number of Employees Who Met the Target