Leetcode, Interval, Interview Questions, Google, Meta.
counter becomes 2 at that event till we find an end event and counter becomes 1 at that event. Repeatedly follow this to find the intervals with at-least one task ongoing. Time complexity is O(N*logN). Problem 9: Given a list of processes that can run in parallel. Each process is represented by a