Why is this wrong for counting Zero-sum Subarrays?
Why is this wrong for counting Zero-sum Subarrays?
What was problem in my code?
Yes because map doesn’t work like that I guess, which is why I changed that part in your code. Please see the code I shared, it is your code only but corrected.
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.