← 返回 atlassian 的题目列表LeetCode Problem 636
类型:online_judge
Given n logs of a function with a unique ID. Each log with the format 'function_id:start_or_end:timestamp' indicates a function starts or ends at a particular time. No two functions overlap. Your task is to return an array of exclusive time of execution for each function. Note that a 1-second time interval implies that a function can end and another can start at the same time.
Example
Input
2
0:start:0
1:start:2
1:end:5
0:end:6