@@ -0,0 +1,494 @@
+class Solution:%0A    # @param %7Binteger%5B%5D%7D nums%0A    # @return %7Binteger%7D%0A    def maxSubArray(self, nums):%0A        cumnums = %5B0%5D + nums%0A        n = len(cumnums)%0A        for i in range(1, n):%0A            cumnums%5Bi%5D += cumnums%5Bi - 1%5D%0A        %0A        minnum = 0%0A        res = cumnums%5B1%5D%0A        for i in range(2, n):%0A            if cumnums%5Bi - 1%5D %3C minnum:%0A                minnum = cumnums%5Bi - 1%5D%0A            if cumnums%5Bi%5D - minnum %3E res:%0A                res = cumnums%5Bi%5D - minnum%0A        return res%0A

Create MaxSubarray_002.py