New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Affirm
Coding Question
AI Insights
Quick Summary
Simulate a redemption system by processing events strictly in their input order.
Track per-user redemption counts for each offer based on active time ranges and action types.
Filter and output redeemable offers for every distinct user appearing in the event log.
What This Tests
Event-driven state simulation
Hash map indexing and composite key management
Conditional filtering with temporal constraints
Strict output ordering and grouping requirements
Common Patterns
Simulation
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