edgeowner
Results
1
comments of
edgeowner
状态方程有个条件少了,对于 特殊case [-2,1]这种就不行; 缺少一定条件的判断 if (dp[i - 1] > 0) { dp[i] = Math.max(nums[i], nums[i] + dp[i - 1]); } else { dp[i] = nums[i]; }