<qiyuangong>045_Jump_Game_II_1.py
def jump( nums):
    if len(nums) <= 1:
        return 0
    end = 0 + nums[0]
    start = 0
    step = 1
    maxDis = 0 + nums[0]
    while end < len(nums) - 1:
        for i in range(start + 1, end + 1):
            maxDis = max(maxDis, nums[i] + i)
        start = end
        end = maxDis
        step += 1
    return step
def sample_funcname ( var_0 ) :
    if len ( var_0 ) <= 1 :
        return 0
    var_4 = 0 + var_0 [ 0 ]
    var_5 = 0
    var_6 = 1
    var_7 = 0 + var_0 [ 0 ]
    while var_4 < len ( var_0 ) - 1 :
        for var_9 in range ( var_5 + 1 , var_4 + 1 ) :
            var_7 = max ( var_7 , var_0 [ var_9 ] + var_9 )
        var_5 = var_4
        var_4 = var_7
        var_6 += 1
    return var_6
