Search⌘ K
AI Features

Solution: High Five

Solution: High Five groups score records by student, then returns student ID and average pairs for their five highest scores, using integer division and ascending ID order.

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