We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Grading Students
Grading Students
Sort by
recency
|
3995 Discussions
|
Please Login in order to post a comment
// Javascript
let resultados = [];
for(let i = 0; i < grades.length; i++) {
} grades.splice(0, grades.length, ...resultados);
return grades;
Here is my c++ solution, you can find video here : https://youtu.be/fYcSakw_5-M
Python solution:
def gradingStudents(grades):
**java **
public static List gradingStudents(List grades) { // Write your code here for(int i=0;i37){ int num=grades.get(i)%10; int newnum=(grades.get(i)/10)*10; if(num<5 && num>2){ grades.set(i, newnum+5); } if(num>5 && num>7){ grades.set(i, newnum+10); } } } return grades; }
My Solution in JavaScript / TypeScript
function gradingStudents(grades: number[ ]): number[ ] {
}