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
Rippling
Coding Question
AI Insights
Quick Summary
Design a voting system that tracks article scores, user votes, and recent vote flips.
Maintain a dynamic leaderboard of articles ranked by score with explicit tie-breaking rules.
Handle state updates efficiently while supporting range queries for top-k rankings.
What This Tests
Hash map design and distributed state management
Custom sorting and tie-breaking logic
Deque usage for bounded history tracking
Balancing lookup speed with ordered retrieval
Common Patterns
Hashing
Sorting
Heap / Priority Queue
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