Product
Pricing
Blog
Forum
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
AI Insights
Quick Summary
Parse string logs to extract vehicle licenses, checkpoint positions, and timestamps.
Group records by license plate and sort each group chronologically by timestamp.
Calculate total fees by summing the absolute difference between consecutive checkpoint positions multiplied by 10.
What This Tests
String parsing and numeric extraction
Hash map grouping and aggregation
Custom sorting and chronological ordering
Sequential state tracking and accumulation
Common Patterns
Hashing
Sorting
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Report
Report seen similar question in interview
Accepted
863
/1.7k
Acceptance Rate
50.0%
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Python3
Auto
Debug
Run
Submit
Test Cases
Input
logEntries =
Output
Expected