why is the out array not forming properly and is printing garbage values?
Kindly check my code
ur code
is adding the nunmber in out array
irrespective of whether u are considering it in the sum or not
ur code
but this will give YES always
check out my code of how i have used recursion
kindly reply…
this code u shared in the last is working fine on all teest cases
where is null taken ???
I am also trying to solve this problems in this ways but getting unknown sum
Approaches 
- Generate all the subset
- take the sum and printout the sum in the base case
can u make a separate doubt thread?
better for 3 of u s