You are viewing a single comment's thread. Return to all comments →
public static List<Integer> gradingStudents(List<Integer> grades) { List<Integer> gradesPlus = new ArrayList<>(); for (Integer grade : grades) { if (grade >= 38 && grade % 5 >= 3){ grade = grade + 5-grade % 5; } gradesPlus.add(grade); } return gradesPlus; }
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Grading Students
You are viewing a single comment's thread. Return to all comments →