Product
Pricing
Blog
Forum
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
AI Insights
Quick Summary
Match spam reports to incoming calls based on receiver identity and a strict time window.
Assign each report to the chronologically closest eligible call with deterministic tie-breaking.
Aggregate matched caller frequencies and return formatted result strings.
What This Tests
Timestamp parsing and time arithmetic
Hash map grouping and efficient lookups
Greedy matching with tie-breaking rules
Leveraging pre-sorted input properties
Common Patterns
Hashing
Greedy
Sorting
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Report
Report seen similar question in interview
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
python
Auto
Debug
Run
Submit
Test Cases
Input
Output
Expected