0 taken in sub array sum

Why was 0 taken as sub array sum? Main array was 1,3,2,6,4 … Bhaiya showed sub array sum as 0,1,4,6,12,16… Why was zero taken?

Hello @diganta_7777 initially you have taken sum as 0 so we have to count that as well.

So for any case I’ll start with zero?

@diganta_7777 yes right.
you intitially you will start with 0.
Happy Learning!!

Got it! Thanks! .

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.