2023-08-01 14:52:16 +0000 UTC

Number of Employees Who Met the Target

Code

class Solution:
    def numberOfEmployeesWhoMetTarget(self, hours: List[int], target: int) -> int:
        count = 0
        for hour in hours:
            if hour < target:
                continue
            count += 1
        
        return count