All Problems

Exclusive Time of Functions

Mediumos-flavorExpected: O(n) time, O(n) spaceInterview Context
stack

Problem

Given n functions with start/end logs on a single-threaded CPU, return the exclusive execution time of each function.

Loading...