<doocs>0045.Jump Game II_1.py
def jump( nums: List[int]) -> int:
    end = mx = steps = 0
    for i, num in enumerate(nums[:-1]):
        mx = max(mx, i + num)
        if i == end:
            end = mx
            steps += 1
    return steps
def sample_funcname ( var_0 : List [ int ] ) -> int :
    var_6 = var_3 = var_4 = 0
    for var_8 , var_10 in enumerate ( var_0 [ : - 1 ] ) :
        var_3 = max ( var_3 , var_8 + var_10 )
        if var_8 == var_6 :
            var_6 = var_3
            var_4 += 1
    return var_4
