最简单粗暴的算法:func maxSubArray(nums []int) int {
if len(nums) == 1 {
return nums[0]
}
max := nums[0]
for i := 0; i <
2020-11-10