Ezvor

1272. Remove Interval

MediumArray Preparing judge… LeetCode
Array

Hints

Hint 1
Solve the problem for every interval alone.
Hint 2
Divide the problem into cases according to the position of the two intervals.