<qiyuangong>053_Maximum_Subarray_3.py
def maxSubArray( nums):
    maxEndingHere = maxSofFar = nums[0]
    for i in range(1, len(nums)):
        maxEndingHere = max(maxEndingHere + nums[i], nums[i])
        maxSofFar = max(maxEndingHere, maxSofFar)
    return maxSofFar
def sample_funcname ( var_0 ) :
    var_3 = var_1 = var_0 [ 0 ]
    for var_7 in range ( 1 , len ( var_0 ) ) :
        var_3 = max ( var_3 + var_0 [ var_7 ] , var_0 [ var_7 ] )
        var_1 = max ( var_3 , var_1 )
    return var_1
