标签:
示例:
输入:2 , -8 ,3 , -2 ,4 ,-10
输出: 5 (即{3 ,-2 ,4})
给定一个整数数组(有正数和负数),找出总和最大的连续数列,并返回总和。
原文地址:http://my.oschina.net/BearCatYN/blog/407173