if (nums.Length == 0)
int maxValue = nums;
int curr = 0;
curr += nums[i];
if (maxValue < curr) maxValue = curr; if (curr < 0) curr = 0; } return maxValue;
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.