[LeetCode] Number of Employees Who Met the Target

1 · · July 30, 2023, 10:39 a.m.
2798. Number of Employees Who Met the Target There are n employees in a company, numbered from 0 to n - 1. Each employee i has worked for hours[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 length n and a non-negative integer target. Return the integer denoting the number of employees who worked at least target hours. ...