You are viewing a single comment's thread. Return to all comments →
My Solution in JavaScript / TypeScript
function gradingStudents(grades: number[ ]): number[ ] {
return grades.map(x => x < 38 ? x : x % 5 === 3 ? x + 2 : x % 5 === 4 ? x + 1 : x)
}
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 →
My Solution in JavaScript / TypeScript
function gradingStudents(grades: number[ ]): number[ ] {
}