Subset Sum Easy One Test case Failing

Help one test case isn’t passing.Code link

Thankyou

You’ve initialised j outside the while(t–) loop. Just bring int j = 0 inside the while loop and you’re done.

1 Like