Arrows for Balloons
Each balloon spans the horizontal interval [start, end]. An arrow shot at bursts every balloon with . Return the minimum number of arrows to burst all balloons.
Examples
EXAMPLE WALKTHROUGHtwo arrows
A guided view of the published example, not a trace of your code.
INPUT
[[[10,16],[2,8],[1,6],[7,12]]]TASKarrows_for_balloons()
EXPECTED OUTPUT
2Start with the input values shown in this example.
Example 1 of 3
Input: points = [[10,16],[2,8],[1,6],[7,12]]
Output: 2
Explanation: two arrows
Input: points = [[1,2],[3,4],[5,6],[7,8]]
Output: 4
Explanation: disjoint
Input: points = [[1,2],[2,3],[3,4],[4,5]]
Output: 2
Explanation: touching
Hint 1
Sort by end; shoot at the end of the first balloon and skip every balloon it bursts.