sir the code is showing wrong answer when submitted
please help
Subset Sum Easy problem
Hey @DJ20001 there were 2 errors in your code.
- You need to use cout<<endl after printing Yes or No for each βtβ.
2)You need set your variable βgβ equal to 0 for each βtβ, otherwise if g becomes greater than 0 for any test case
it will remain true for remaining testcases as well and your code always prints βYesβ.
If you have any further queries please feel free to ask.