Cant pass the test cases please tell me where i m going wrong

hey @haseebshaik00 can you please tell me which test cases you are failing so that i can easily debug it :smile:

when i am giving manual inputs its giving the correct output but while submitting its showing run error

That might be because of extra iterations you are making. just give me manual inputs you were giving and I’ll see where you are wrong .

hey friend i have debugged your code and i can see that it can’t handle cases in which output is NO like this one,
1
8
3 1 4 1 1 4 9 3
it will give you segmentation fault. I would suggest you to make two separate function, one for making subset of an array and one to check if that sub array sum is equal to zero or not :smile: