Number of Employees Who Met the Target
We need to find the number of employees who have worked at least target
hours. We can achieve this by iterating through the hours
array and counting the number of elements that are greater than or equal to the target
.
Here’s the code:


This code has a time complexity of (O(n)) where (n) is the number of employees, and a space complexity of (O(1)).