New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
JobRadar
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Roblox
Coding Question
AI Insights
Quick Summary
Track dynamic cumulative scores for named entities across sequential update and query operations.
Return the entity with the highest score on each query, breaking ties alphabetically.
Efficiently handle frequent updates without scanning all entities.
What This Tests
Hash map usage for maintaining current state
Max-heap implementation for efficient retrieval
Lazy deletion strategy for outdated heap entries
Custom comparator logic for deterministic tie-breaking
Common Patterns
Heap / Priority Queue
Hashing
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Test Cases
Input
Output
Expected