There are n employees numbered 0 to n - 1. Employee i has worked hours[i] hours. The company requires every employee to work at least target hours. Return the number of employees who worked at least target hours.
There are n employees numbered 0 to n - 1. Employee i has worked hours[i] hours. The company requires every employee to work at least target hours. Return the number of employees who worked at least target hours.
Example 1:
Input: {"hours":[0,1,2,3,4],"target":2}
Output: 3
Constraints:
1≤n==hours.length≤50
0≤hours[i],target≤105
Test Cases
Input (Stdin)
Expected Output (Stdout)
Execution Result
Run code to see results.
Input
arr ={"hours":[0,1,2,3,4],"target":2}
Draw the target line at 2 hours. Every bar that reaches the line is an employee who met the target.