Top three scores for each student

0
Remix

Given records of student ID and score, return each student's three highest scores. Group by student and keep the top three with a small heap; when you learn that scores are whole numbers from 0 to 100, count them in buckets instead.

AppleTechnical phone screenLast asked Aug 2025
No answer yet. Write the first one; the best answer gets endorsed.