Problem 1244 · Medium

Design A Leaderboard

Keep a scoreboard that can add points to a player, creating the player if new, set a player back to zero, and report the combined total of the k highest scores.

Open the interactive visualisation