Algorithm · Atlassian · Medium
You are given n execution records for functions identified by unique IDs. Every record has the form function_id:start_or_end:timestamp, marking the instant when a function begins or finishes. No pair of functions runs concurrently. Return an array containing the exclusive execution duration for every function. Because timestamps are inclusive, one function may finish at the same timestamp that another begins, even when the interval lasts only one second. Example Function 1…
Checking your access…