Leetcode, Interval, Interview Questions, Google, Meta.
[16,18] B: [2,6], [8,10], [11,20] output [1,6], [8, 20] Solution: One solution is to use the events. From the 2 lists, create the merged events using merge sort technique. Keep a counter to track the number of ongoing events. For each start event increase by 1 and for an end event decrease counter