<doocs>0881.Boats to Save People_1.py
def numRescueBoats( people: List[int], limit: int) -> int:
    people.sort()
    num, i, j = 0, 0, len(people) - 1
    while i <= j:
        if people[i] + people[j] <= limit:
            i += 1
        j -= 1
        num += 1
    return num
def sample_funcname ( var_0 : List [ int ] , var_3 : int ) -> int :
    var_0.sort ( )
    var_6 , var_7 , var_10 = 0 , 0 , len ( var_0 ) - 1
    while var_7 <= var_10 :
        if var_0 [ var_7 ] + var_0 [ var_10 ] <= var_3 :
            var_7 += 1
        var_10 -= 1
        var_6 += 1
    return var_6
