1272. Remove Interval

You are given a sorted list of disjoint intervals intervals, where each interval is a half-open range [start, end), and a half-open removal range toRemove = [removeStart, removeEnd).

Remove all numbers covered by toRemove from the list and return the remaining ranges. Ranges are still represented as [start, end), and empty ranges are omitted.

Because the input intervals are disjoint and sorted, each interval interacts with toRemove in one of four ways: it is entirely before, entirely after, partially clipped on one side, or fully covered.

Examples
Input: [[[0,2],[3,5],[6,8],[9,11]],[1,5]]
Output: [[0,1],[6,8],[9,11]]
Hints
Related Problems

1272. Remove Interval

You are given a sorted list of disjoint intervals `intervals`, where each interval is a half-open range `[start, end)`, and a half-open removal range `toRemove = [removeStart, removeEnd)`.