Subsetsum easy problem


None of the test case pass.
Please check my logic and explain if i am wrong with my logic

Hey @mkidwai74 you have to print answer for each test case in new line, add endl after cout statement of yes and no, so that they can print output of each test case in separate line.

Still none of the test cases pass.
Kindly comment out the errors

Check now ->

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.