Limited Time Offer:Up to 20% off Hello Interview Premium
Up to 20% off Hello Interview Premium 🎉
Hello Interview
Your Dashboard
System Design
Code
Low Level Design
Behavioral
AI Coding
New
ML System Design
Salary Negotiation
Interview Guides
Blog
System Design
Low Level Design
AI Coding
Behavioral
New
Interview Questions
Success Stories
System Design
Low-Level Design
New
Ask The Community
Interview Experiences
Discord
Mock Interviews
1:1 Mentorship
Refer a Friend
Pricing
Sign in / Sign up
Search
⌘K
Pricing

Tutor

Leetcode 1244. Design A Leaderboard

Design a data structure that supports addScore(playerId, score), reset(playerId), and top(K) which returns the sum of the top K players' scores; the core challenge is maintaining dynamic scores under frequent updates and answering top-K sum queries efficiently (e.g., via an ordered structure or heaps combined with a map).

Asked at:

Y

Yahoo

Uber


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Company
​
Level
All Regions
Region

Mid January, 2026

Y

Yahoo

Junior

Pros/Cons of heap approach– Simple, memory‑efficient; recompute each call (O(n)) if not using persistent heap. More performant alternative– Use SortedList (or balanced BST) + dictionary; updates O(log n), getHighScores O(1). Further optimization– Fixed‑size min‑heap alongside dictionary; lazy deletion; possible Redis Sorted Set for distributed scale.

Early December, 2025

Uber

Mid-level

Your account is free and you can post anonymously if you choose.

Hello Interview Premium

Recent interview questions
System Design Guided Practice
Exclusive content
Learn More
Questions
Meta SWE Interview QuestionsAmazon SWE Interview QuestionsGoogle SWE Interview QuestionsOpenAI SWE Interview QuestionsEngineering Manager (EM) Interview Questions
Learn
Learn System DesignLearn DSALearn BehavioralLearn ML System DesignLearn Low Level DesignGuided Practice
Links
FAQPricingGift PremiumHello Interview Premium
Legal
Terms and ConditionsPrivacy PolicySecurity
Contact
About UsProduct Support

7511 Greenwood Ave North Unit #4238 Seattle WA 98103


© 2026 Optick Labs Inc. All rights reserved.