You are viewing a single comment's thread. Return to all comments →
vector<int> gradingStudents(vector<int> grades) { for(int i = 0; i < grades.size(); i++) { if(grades[i] >= 38) { int diff = abs((grades[i]%5)-5); if(diff < 3) { grades[i] += diff; } } } return grades; }
Seems like cookies are disabled on this browser, please enable them to open this website
Grading Students
You are viewing a single comment's thread. Return to all comments →