Reconstruct Function Events from Sampled Call Stacks

Given time-ordered sampled call stacks, reconstruct function start and end events.

Each sample contains a timestamp and a stack ordered from the outermost caller to the currently executing innermost ...

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: