You are viewing a single comment's thread. Return to all comments →
public static String angryProfessor(int k, List a) { // Write your code here int onTimeCount = 0;
for(int time : a){ if(time <=0){ onTimeCount++; } } 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) { // Write your code here int onTimeCount = 0;
}