NeetCode #34LC-1244MediumArrays & HashingNC Algo100
← Back to All Problems

#34 · #1244 · Design A Leaderboard(力扣排行榜)

📌 Problem Statement & Constraints

Design a leaderboard with addScore(playerId, score), top(K) returning the sum of the top K scores, and reset(playerId) setting that player's score to 0. Constraints: at most 1000 players and 10^4 calls; 1 <= score <= 100, 1 <= K <= number of players.
🔒

Sign In to Unlock Full Solutions for All 973 Problems

Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!