Intervals - Minimum Number of Arrows to Burst Balloons
Consider two approaches to solve the minimum arrows problem:
Approach 1: Sorting intervals by start coordinate and greedily updating the current group's end.
Approach 2: Sorting intervals by end coordinate and greedily shooting arrows at earliest possible end.
When is Approach 1 preferable over Approach 2?
