Tap here to switch tabs
Problem
Submissions

Problem: Number of Employees Who Met the Target

med
30 min
Try to solve the Number of Employees Who Met the Target problem.

Statement

There are nn employees in a company, indexed from 00 to n−1n - 1. Each employee ii has worked for hours[i] hours.

The company requires each employee to work at least target hours.

Return the total number of employees who worked at least target hours.

Constraints:

  • 1≤n==1 \leq n == hours.length ≤50\leq 50

  • 0≤0 \leq hours[i], target ≤105\leq 10^5

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Number of Employees Who Met the Target

med
30 min
Try to solve the Number of Employees Who Met the Target problem.

Statement

There are nn employees in a company, indexed from 00 to n−1n - 1. Each employee ii has worked for hours[i] hours.

The company requires each employee to work at least target hours.

Return the total number of employees who worked at least target hours.

Constraints:

  • 1≤n==1 \leq n == hours.length ≤50\leq 50

  • 0≤0 \leq hours[i], target ≤105\leq 10^5