Top three scores for each student
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.
No answer yet. Write the first one; the best answer gets endorsed.
