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
Filter transaction logs to retain only completed records within a 24-hour window.
Group qualifying transactions by merchant ID and their hour difference from the current time.
Sum the amounts for each merchant-hour pair and return the resulting nested aggregation.
What This Tests
Nested hash map construction and traversal
Multi-condition data filtering
String-to-number conversion and arithmetic accumulation
Efficient single-pass data aggregation
Common Patterns
Hashing
Collapse
Hint
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
Stdout
-