• + 0 comments
    *JAVA 8***

    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";
    
    }
    

    }