Loading...
Given a sorted list of non-overlapping intervals and a new interval, insert and merge if necessary. Return the result.
Input: first line = intervals as start:end comma-separated (or 'none'), second = new interval start:end.
1:3,6:9 2:5
1 5 6 9