2798. Number of Employees Who Met the Target - LeetCode
class Solution:
def numberOfEmployeesWhoMetTarget(self, hours: list[int], target: int) -> int:
return sum(1 for x in hours if x >= target)
class Solution:
def numberOfEmployeesWhoMetTarget(self, hours: list[int], target: int) -> int:
return sum(1 for x in hours if x >= target)