Convert Call-Stack Samples into Timestamped Function Events

Given call-stack samples arriving in timestamp order, generate timestamped function start and end events.

Each sample contains:

  • a timestamp; and
  • a call stack ordered from caller to the cur...

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: