Product
Pricing
Blog
Forum
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
AI Insights
Quick Summary
Track order states using a hash map to match acceptance timestamps with completion events.
Calculate base salary by multiplying delivery duration by a fixed rate.
Adjust earnings by computing time overlaps between active deliveries and double-pay windows.
What This Tests
Hash map state management
Interval intersection and overlap arithmetic
Data parsing and conditional processing
Accumulator pattern with conditional multipliers
Common Patterns
Hashing
Collapse
Hint
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