Given a collection of intervals, merge all overlapping intervals and return an array of the non-overlapping intervals that cover all the intervals in the input.
[start, end].def merge_intervals(intervals):
You are practicing as a guest. Sign up free to run your code against the sample data. Your draft stays right here.