Search⌘ K
AI Features

Solution: High Five

Understand how to use hash maps to store and organize student scores, then compute the top five averages by sorting scores for each student. This lesson guides you through managing data collections, performing calculations, and returning results sorted by student IDs, helping you master common coding interview problems involving hash maps.

Statement

You are given a list of scores for multiple students, represented as items, where items[i]=[IDi,scorei]items[i] = [ID_i, score_i] ...