Product
Pricing
Blog
Forum
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
AI Insights
Quick Summary
Parse colon-delimited log strings to extract thread IDs and timestamps.
Group all log entries into a hash map keyed by thread ID.
Sort each group's logs in ascending order based on their numeric timestamp.
What This Tests
String parsing and substring extraction
Hash map usage for efficient key-value grouping
Custom comparator implementation for numerical sorting
Handling delimited string edge cases
Common Patterns
Hashing
Sorting
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
Stdout
-