Maximum subarray sum cumulative sum approach

what will be cumsum[i-1] when i=0??

@riagoel3999 start with i = 1;

But in video he started with 0

@riagoel3999 see 5:36 line 21

I m talking about line 35

no ideally it should be 1

1 Like