Render a Task Hierarchy from Flat Records
Given flat task records sorted by timestamp, build their parent-child hierarchy and render it using tree connectors.
Each record is one of the following:
- Root record: `timestamp task task_id task_...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
