...

/

Exclusive Execution Time of Functions

Exclusive Execution Time of Functions

Compute exclusive execution times for all functions in the program.

Statement

We are given an integer number nn, representing the number of functions running in a single-threaded CPU, and a list of strings, where each string represents the start or end timestamp of a specific function. Each function has a unique ID between 00 and n1n-1. Compute the exclusive time of the functions in the program.

Note: Exclusive time is the sum of the execution times for all the calls to a specific function. ...

Constraints

  • 11