<p> <span>找出数组(至少包含一个数字)中的一个连续子数组、该子数组拥有
发布于 2022-03-03 16:35:06
找出数组(至少包含一个数字)中的一个连续子数组、该子数组拥有最大和。
例如:给定一个数组[ − 2,1, − 3,4, − 1,2,1, − 5,4],连续子数组[4, − 1,2,1]的和是6,比其它子数组的和都大。
int maxSubArray(int *nums, int arrLen){
}
关注者
0
被浏览
22