Subset sum to target 2nd test case not passing

what is the error in code?
code-https://ide.codingblocks.com/s/261380

4 10
1 5 5 11

for this input your code gives wrong output

why you are starting from end??
it is wrong

in bottom up dp you have to start from bottom not from top

Reference Code

Fixed the code…the problem was in the loop initialization, fixed it by changing j from “100099” to “100098”.The code works fine now for the input you gave.Still 2nd testcasewrong.

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.