HTMLify

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

Comments