in the loop sir wrote
current sum =cumsum[j]-cumsum[i-1]
them considering first iteration i=0=j
i-1 term becomes -1
is a[-1] defined??
WHAT IS a[-1] IN THE LOOP
Hello @amit007 this is the problem in the video and this video will be replaced .
yes this thing is wrong.
you are right.
you can move on this video will be replaced.
Happy Learning!!
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.