Intervals - Minimum Number of Arrows to Burst Balloons
The following code attempts to find the minimum number of arrows to burst balloons. Identify the subtle bug that causes incorrect arrow count in some cases:
```python
def findMinArrowShots(points):
if not points:
return 0
points.sort(key=lambda x: x[1])
arrows = 1
arrow_pos = points[0][0] # Bug here
for start, end in points[1:]:
if start > arrow_pos:
arrows += 1
arrow_pos = end
return arrows
```
