Skip to main content

2798. Number of Employees Who Met the Target - LeetCode

ยท One min read
class Solution:
def numberOfEmployeesWhoMetTarget(self, hours: list[int], target: int) -> int:
return sum(1 for x in hours if x >= target)