[1,-2,3,10,-4,7,2,-5]
[3,10,-4,7,2]
经分析可知,输入数组的子数组[3,10,-4,7,2]可以求得最大和为18,故返回[3,10,-4,7,2]
[1]
[1,2,-3,4,-1,1,-3,2]
[1,2,-3,4,-1,1]
经分析可知,最大子数组的和为4,有[4],[4,-1,1],[1,2,-3,4],[1,2,-3,4,-1,1],故返回其中长度最长的[1,2,-3,4,-1,1]
[-2,-1]
[-1]
子数组最小长度为1,故返回[-1]