251. Minimum Number of Arrows to Burst Balloons

MediumGreedy

Given an array of balloon intervals, return the minimum number of arrows that must be shot to burst all balloons.

Examples

Input: [[10,16],[2,8],[1,6],[7,12]]

Output: 2

Explanation: Public test case for Minimum Number of Arrows to Burst Balloons

Constraints

  • 1 <= points.length <= 10^5
  • points[i].length == 2
Loading...

Run checks all cases above. Submit evaluates all test cases.