Hi, Team here is my question,
While subtracting the CumulativeSum[j] - CumulativeSum[i-1], shouldn’t we be getting an array out of bound error in exception for j = i and i = 0. As that would mean CumulativeSum[0] - CumulativeSum[-1].
Also how can we cover the case when the first element in the array is the maximu subarray.