<doocs>0152.Maximum Product Subarray_1.py
def maxProduct( nums: List[int]) -> int:
    maxf = minf = res = nums[0]
    for num in nums[1:]:
        m, n = maxf, minf
        maxf = max(num, m * num, n * num)
        minf = min(num, m * num, n * num)
        res = max(res, maxf)
    return res
def sample_funcname ( var_0 : List [ int ] ) -> int :
    var_6 = var_3 = var_4 = var_0 [ 0 ]
    for var_8 in var_0 [ 1 : ] :
        var_9 , var_10 = var_6 , var_3
        var_6 = max ( var_8 , var_9 * var_8 , var_10 * var_8 )
        var_3 = min ( var_8 , var_9 * var_8 , var_10 * var_8 )
        var_4 = max ( var_4 , var_6 )
    return var_4
