In time stamp 4:42

why are we taking an extra block in array in the starting ???

hi @manthan.joshi.jiit it is done just for convinience in calculating the sum of subarray, watch the whole video you will understand

did it two times…still not able to undersand the bisic concept behind it…why are we taking count of 0 as 1 in the starting only

how would it affect the frequney

@manthan.joshi.jiit it does not affect the logic, just for convinience purpose.

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.