In the method where we solve the maximum subarray sum problem in O(n^2) ,we use the cummalative array…
I give input : {1,2,3,4}
get cummalative array as:-{1,3,6,10}
but get the maximum subarray=9…
In this method ,it is not consider the a[0] position element ??