Search
⌘K

Leetcode 1086. High Five

Given a list of (studentId, score) pairs, compute each student's average of their top five scores and return the results as (studentId, average) sorted by student ID. The core tasks are grouping scores by student and efficiently selecting the top five scores per student (e.g., via sorting or a fixed-size min-heap).


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.