Did not understand line no 10 of code

did not understand line no 10 of code

It means that, if prefix sum is 0 at that point, so the subarray starting from index 0 upto current index will have total sum as 0. So this subarray can also contribute to final answer.This is why it is taken.
The second part in the condition is to check if the prefix sum at current index is already present before in the prefix array, It it is present then the subarray starting from that index upto the current index will have sum as 0. This condition has already been discussed in the approach video. Watch it again to understand it better.

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.