my code is running perfectly fine but still the test case are not passed.
here’s the code- https://ide.codingblocks.com/s/82103
Subset sum =0 problem
your code is producing “yes” even if a subset with zero sum does not exixt. bcoz you are comparing currsum==sum and initially everytime it will be 0 only bcoz you are giving initially currsum=0 and sum=0.
where should i put the condition (currsum=sum) so that it does not give “yes” every time?