<doocs>0452.Minimum Number of Arrows to Burst Balloons_1.py
def findMinArrowShots( points: List[List[int]]) -> int:
    points.sort(key=lambda x: x[1])
    ans = 1
    x = points[0][1]
    for a, b in points:
        if a > x:
            ans += 1
            x = b
    return ans
def sample_funcname ( var_0 : List [ List [ int ] ] ) -> int :
    var_0.sort ( var_4 = lambda var_5 : var_5 [ 1 ] )
    var_7 = 1
    var_5 = var_0 [ 0 ] [ 1 ]
    for var_9 , var_10 in var_0 :
        if var_9 > var_5 :
            var_7 += 1
            var_5 = var_10
    return var_7
