<doocs>0055.Jump Game_1.py
def canJump( nums: List[int]) -> bool:
    mx = 0
    for i, num in enumerate(nums):
        if i > mx:
            return False
        mx = max(mx, i + num)
    return True
def sample_funcname ( var_0 : List [ int ] ) -> bool :
    var_5 = 0
    for var_7 , var_8 in enumerate ( var_0 ) :
        if var_7 > var_5 :
            return False
        var_5 = max ( var_5 , var_7 + var_8 )
    return True
