High Five
Try to solve the High Five problem.
We'll cover the following
Statement
You are given a list of scores for multiple students, represented as items
, where
Return the result as an array of pairs, result
, where result
should be sorted in ascending order by
Note: To calculate the top five averages for each student, sum their highest five scores and perform integer division by
.
Constraints:
items.length
items[i].length
For eachÂ
, there will be at least five scores.
Examples
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.