Subset sum easy

getting all test case wrong but getting output correct.

the question asks you to find if there is any non empty subset whose sum is zero, you are trying to find subset with sum 9. please read the question again and try to fix the logical error.

still getting same problem after correcting

ok still getting same problem after correcting

can you share new code?

see this

again read the question it mentions that non empty subset it is possible to choose an empty subset and its sum would always be 0.

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.