HTMLify
LeetCode - Number of Employees Who Met the Target - Go
Views: 320 | Author: abh
1 2 3 4 5 6 7 8 9 | func numberOfEmployeesWhoMetTarget(hours []int, target int) int { var ans int for _, hour := range hours { if hour >= target { ans++ } } return ans } |