Maximum Subarray Sum 2

At line number 35 in the video,in first iteration, cSum[i-1] will be equal to cSum[-1] because i=0. So this program should give a garbage value?

@adi2007jain hey aditya you’re right there is small mistake in the code
you can refer to this link maximum subarray sum 2.