Search⌘ K
AI Features

Solution: High Five

Explore how to apply hash maps to store student scores efficiently and sort them to find each student's top five average. Understand data structures and algorithms to solve similar scoring problems in coding interviews.

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] ...