All the test cases are failing and i am unable to get the error

My code is - https://ide.codingblocks.com/s/340829

Hey @sukritbansal01 I have made a pictorial representation of what you are making. The problem is not this as you are approaching towards it.


What the problem is saying is that you have to make all subsequences of array a and after that you have to check that if sum of all the elements of any of the array Is equal to zero or not.
Change your implementation. Hope it will help you :slight_smile:

I think your representation is wrong
Can you look at it again

It’s right for sure @sukritbansal01

But you havnt considered calling of the second function recursion in first function call
And thats not correct for sure
Can you please provide a correct answer

Here’s the code.

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.