2798. Number of Employees Who Met the Target
There are
n
employees in a company, numbered from0
ton - 1
. Each employeei
has worked forhours[i]
hours in the company.The company requires each employee to work for at least
target
hours.You are given a 0-indexed array of non-negative integers
hours
of lengthn
and a non-negative integertarget
.Return the integer denoting the number of employees who worked at least
target
hours.
1 | class Solution { |