Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
The complexity of the solution is independent of the length of the array nums.
Sort ranges by their start points.
An uncovered range should start right after the end of one of the input ranges (or starts at zero) and also ends right before the start of one of the input ranges (or ends at n).