<doocs>0053.Maximum Subarray_1.py
def maxSubArray( nums: List[int]) -> int:
    res = f = nums[0]
    for num in nums[1:]:
        f = num + max(f, 0)
        res = max(res, f)
    return res
def sample_funcname ( var_0 : List [ int ] ) -> int :
    var_5 = var_3 = var_0 [ 0 ]
    for var_7 in var_0 [ 1 : ] :
        var_3 = var_7 + max ( var_3 , 0 )
        var_5 = max ( var_5 , var_3 )
    return var_5
