Leetcode, Interval, Interview Questions, Google, Meta.
100, 200], [3, 300, 350]] Output: [[1, 100], [2, 50], [3, 50]] Solution: One solution is to use events. Sort the start and end events first. Keep a counter to track the number of ongoing processes. Increment the counter by 1 if we see a start event and decrement by 1 if we see an end event. For