You are viewing a single comment's thread. Return to all comments →
public static String angryProfessor(int k, List a) { long onTimeCount = a.stream() .filter(time -> time <= 0) .count();
return (onTimeCount >= k) ? "NO" : "YES"; }
Seems like cookies are disabled on this browser, please enable them to open this website
Angry Professor
You are viewing a single comment's thread. Return to all comments →
public static String angryProfessor(int k, List a) { long onTimeCount = a.stream() .filter(time -> time <= 0) .count();