Algorithms
Easy
2798
2876
Number of Employees Who Met the Target
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.

Example 1:

Input: hours = [0,1,2,3,4], target = 2
Output: 3
Explanation: The company wants each employee to work for at least 2 hours.
- Employee 0 worked for 0 hours and didn't meet the target.
- Employee 1 worked for 1 hours and didn't meet the target.
- Employee 2 worked for 2 hours and met the target.
- Employee 3 worked for 3 hours and met the target.
- Employee 4 worked for 4 hours and met the target.
There are 3 employees who met the target.

Example 2:

Input: hours = [5,1,4,2,2], target = 6
Output: 0
Explanation: The company wants each employee to work for at least 6 hours.
There are 0 employees who met the target.


Constraints:

 * 1 <= n == hours.length <= 50
 * 0 <= hours[i], target <= 105
"""
class Solution:
    def numberOfEmployeesWhoMetTarget(self, hours: List[int], target: int) -> int:
        
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.

Example 1:

Input: hours = [0,1,2,3,4], target = 2
Output: 3
Explanation: The company wants each employee to work for at least 2 hours.
- Employee 0 worked for 0 hours and didn't meet the target.
- Employee 1 worked for 1 hours and didn't meet the target.
- Employee 2 worked for 2 hours and met the target.
- Employee 3 worked for 3 hours and met the target.
- Employee 4 worked for 4 hours and met the target.
There are 3 employees who met the target.

Example 2:

Input: hours = [5,1,4,2,2], target = 6
Output: 0
Explanation: The company wants each employee to work for at least 6 hours.
There are 0 employees who met the target.


Constraints:

 * 1 <= n == hours.length <= 50
 * 0 <= hours[i], target <= 105


Please complete the code below to solve above prblem:
```python
class Solution:
    def numberOfEmployeesWhoMetTarget(self, hours: List[int], target: int) -> int:
        
```

my_solution = Solution()

test_input = { "hours": [0,1,2,3,4], "target": 2 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 3

test_input = { "hours": [5,1,4,2,2], "target": 6 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [98], "target": 5 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [19], "target": 13 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [70], "target": 13 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [26], "target": 14 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [2], "target": 16 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [77], "target": 19 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [6], "target": 21 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [27], "target": 21 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [36], "target": 22 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [42], "target": 25 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [70], "target": 27 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [2], "target": 28 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [14], "target": 31 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [45], "target": 34 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [44], "target": 35 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [11], "target": 39 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [71], "target": 39 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [91], "target": 45 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [81], "target": 51 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [15], "target": 52 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [90], "target": 59 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [40], "target": 64 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [12], "target": 69 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [83], "target": 70 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [38], "target": 74 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [18], "target": 78 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [60], "target": 83 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [50], "target": 87 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [75], "target": 92 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [91], "target": 96 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [11], "target": 97 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [48,28], "target": 2 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 2

test_input = { "hours": [38,46], "target": 3 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 2

test_input = { "hours": [30,79], "target": 6 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 2

test_input = { "hours": [45,78], "target": 6 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 2

test_input = { "hours": [20,69], "target": 10 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 2

test_input = { "hours": [82,67], "target": 11 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 2

test_input = { "hours": [29,75], "target": 12 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 2

test_input = { "hours": [97,37], "target": 17 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 2

test_input = { "hours": [42,100], "target": 20 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 2

test_input = { "hours": [11,58], "target": 21 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [12,46], "target": 21 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [70,84], "target": 37 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 2

test_input = { "hours": [7,100], "target": 38 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [47,94], "target": 40 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 2

test_input = { "hours": [18,34], "target": 50 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [47,79], "target": 55 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [74,99], "target": 56 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 2

test_input = { "hours": [53,81], "target": 67 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [36,61], "target": 68 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [48,98], "target": 71 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [71,94], "target": 72 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [60,99], "target": 73 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [12,12], "target": 74 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [100,87], "target": 75 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 2

test_input = { "hours": [12,56], "target": 77 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [15,36], "target": 86 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [53,45], "target": 86 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [4,77], "target": 89 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [23,29], "target": 93 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [76,62,96], "target": 5 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 3

test_input = { "hours": [82,67,33], "target": 5 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 3

test_input = { "hours": [28,96,39], "target": 10 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 3

test_input = { "hours": [42,93,58], "target": 13 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 3

test_input = { "hours": [53,22,48], "target": 13 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 3

test_input = { "hours": [68,81,61], "target": 13 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 3

test_input = { "hours": [68,32,33], "target": 22 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 3

test_input = { "hours": [59,65,70], "target": 26 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 3

test_input = { "hours": [15,43,21], "target": 29 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [40,80,75], "target": 33 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 3

test_input = { "hours": [64,11,73], "target": 34 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 2

test_input = { "hours": [1,74,34], "target": 44 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [96,79,91], "target": 44 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 3

test_input = { "hours": [59,9,9], "target": 48 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [79,48,62], "target": 53 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 2

test_input = { "hours": [58,83,2], "target": 54 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 2

test_input = { "hours": [51,40,12], "target": 57 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [54,2,80], "target": 60 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [92,45,91], "target": 65 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 2

test_input = { "hours": [93,23,46], "target": 67 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [17,60,1], "target": 70 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [9,63,77], "target": 73 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [44,86,37], "target": 73 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [75,37,68], "target": 73 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [33,26,77], "target": 78 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [11,88,27], "target": 79 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [12,48,44], "target": 80 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [19,88,13], "target": 82 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [61,56,67], "target": 82 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [46,24,38], "target": 84 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [93,51,83], "target": 85 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 1

test_input = { "hours": [58,14,83], "target": 87 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [52,33,56], "target": 89 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [34,73,46], "target": 91 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [26,59,55], "target": 94 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [41,89,34], "target": 100 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 0

test_input = { "hours": [9,26,77,55], "target": 0 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 4

test_input = { "hours": [24,79,63,37], "target": 1 }
assert my_solution.numberOfEmployeesWhoMetTarget(**test_input) == 4