Spot the bug: Merge Intervals that shrinks an interval

medium
Intervals: sort and sweep

Bug 5 of 12

This Python solution is supposed to do the following: Merge all overlapping intervals and return the result sorted by start. It has one bug. Find the line in two tries.

Tap the line with the bug

2 tries left

FAQ