You are viewing a single comment's thread. Return to all comments →
Here's the C++ solution:
vector<int> gradingStudents(vector<int> grades) { for(int i=0; i<grades.size(); i++){ int dif = 5-grades[i]%5; if(grades[i] >= 38 && dif < 3) grades[i] += dif; } 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 →
Here's the C++ solution: