in line no 35 we did currentsum=cumsum[j]-cumsum[i-1] and in this way for i=0 we used cumsum[-1] which is resulting into logical error like if the all the no. of array are positive we will get wrong ans for the question.
in line no 35 we did currentsum=cumsum[j]-cumsum[i-1] and in this way for i=0 we used cumsum[-1] which is resulting into logical error like if the all the no. of array are positive we will get wrong ans for the question.