Unordered Set and unordered map STL quiz Q10

Unable to figure out the edge test case for which it fails.

Say if the first element in the vector is 0. Will that code able to detect it as a subarray with sum 0?

1 Like

Okay i 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.