DIY: Exclusive Time of Functions

Solve the interview question "Exclusive Time of Functions" yourself in this lesson.

Problem statement

You are given a list of logs, where logs[i] represents the ithith log message formatted as a string, {function_id}:{"start" | "end"}:{timestamp}. ...