【leetcode】53. Maximum Subarray
题目Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
For example:
given the array [-2,1,-3,4,-1,2,1,-5,4],the contiguous subarray [4,-1,2,1] has the largest sum = 6.
问题陈述:求一个数组的最大连续子数组,连续和最大的子数组
题目思路:
遍历,复杂度O(n^2)
分治法,《算法导论》第四章讲过
把数组看作A[low..hig
...