1244. Design A Leaderboard
Hash TableDesignSorting
Hints
Hint 1
What data structure can we use to keep the players' data?
Hint 2
Keep a map (dictionary) of player scores.
Hint 3
For each top(K) function call, find the maximum K scores and add them.
Preparing judge…