Design A Leaderboard using Priority Queue, Hash Map (unordered_map), or Hash Set (multi_set)
December 11, 2019
algorithms, c / c++, data structure, design questions, programming languages, python
No Comments
Design a Leaderboard class, which has 3 functions: addScore(playerId, score): Update the leaderboard by adding score to the given player’s score. If there is no player with such id …