Merge Intervals — JavaScript medium interview problem
Given an array of `intervals` where `intervals[i] = [starti, endi]`, merge all overlapping intervals and return an array of the non-overlapping intervals.
Tags: intervals, sorting
Practice this Arrays problem free in the JS Interview Playground with automated tests and unlockable solutions.