HTMLify
LeetCode - Number of Employees Who Met the Target - Go
Views: 181 | Author: abh
func numberOfEmployeesWhoMetTarget(hours []int, target int) int {
var ans int
for _, hour := range hours {
if hour >= target {
ans++
}
}
return ans
}