• + 0 comments

    public static String angryProfessor(int k, List a) { long onTimeCount = a.stream() .filter(time -> time <= 0) .count();

        return (onTimeCount >= k) ? "NO" : "YES";
    }