Return the top 5 posts by score in the last 30 minutes.
Unlock detailed company stats for this questionUpgrade
Given a stream of social media actions (user, action, timestamp) where View = 1 point, Like = 3 and Share = 5, find the top 5 posts by score within the last 30 minutes.
Expect follow-ups like
- The problem started as finding the top posts by score overall; the time window was added after the candidate asked how timestamps mattered.
Community answers
No answers contributed by the community yet.
Related questions
Return the minutes since the last bus departed.Design a system that returns the top K microservices by error logs in the last 5 minutes.Related courses

Course

Course
Course
