Sumof subset zero


what is the problem with the code

Check Now=>

can we do it with out using extra array

Yes you can do it in that way too, you can see that implementation here


I just used extra array so that you can get an idea of the problem. But if you want to do it without any extra space. You can do it like this also.

can u tell me how can we check about empty subsets

Hey @manthansrivastav1234 I didn’t get you, can you elaborate yourself with an example so that i can explain it to you.

ok i got that thanks for the help

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.