Skip to content

#452 - Minimum Number of Arrows to Burst Balloons

MediumIntervals
Open on LeetCode

Balloons are represented as intervals [xstart, xend] on a wall. An arrow shot at position x bursts all balloons where xstart <= x <= xend. Return the minimum number of arrows to burst all balloons.

InputOutput
points = [[10,16],[2,8],[1,6],[7,12]]2
points = [[1,2],[3,4],[5,6],[7,8]]4
points = [[1,2],[2,3],[3,4],[4,5]]2

Released under the MIT License.