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