Maximum subarray sum 2 video

I want to kmow about currentSum=cumSum[j]-cumSum[i]

If I had not seen this video how i would have approached this statement

hey @AyushKumar9032, just dry run this statement some sample array and you will get the reason behind it.

1 Like