Tags

Merge Intervals

Merge Intervals

0 lessons
4 problems
1 question bank

merge-intervals

Practice Problems

4 problems

Insert Interval

Free
Not Started
Medium

Given a set of non-overlapping intervals sorted by start time and a new interval, insert the new interval and merge if necessary.

Interval Problems
Merge Intervals
Intermediate

913

7

Merge Intervals

Free
Not Started
Medium

Given an array of intervals, merge all overlapping intervals and return an array of the non-overlapping intervals that cover all the intervals in the input.

Interval Problems
Merge Intervals
Sorting
Intermediate

279

9

Minimum Arrows to Burst Balloons

Not Started
Medium

Given balloons represented as horizontal intervals, find the minimum number of vertical arrows needed to burst all balloons.

Algorithms
Intermediate
Greedy
Sorting
Interval Problems
Merge Intervals
Premium

238

3

Non-overlapping Intervals

Not Started
Medium

Given an array of intervals, return the minimum number of intervals you need to remove to make the rest of the intervals non-overlapping.

Algorithms
Intermediate
Greedy
Sorting
Interval Problems
Merge Intervals
Premium

371

7

Question Banks

1 item
Question Bank
Premium

Intervals and Merge Problems

Six harder prompts on sorting intervals, sweep-line counts, overlap detection, and meeting-room scheduling. Code-anchored interview prep.

JavaScript
merge-intervals
sweep-line
algorithms
interview-prep

694

5

Hard