• + 0 comments

    java

    public static String angryProfessor(int k, List<Integer> a) {
            a.removeIf(n -> (n > 0));
            return a.size() < k ? "YES" : "NO";
    }