I am not getting the correct output in all test cases but i think the algo and code is fine, is there any mistake?
Subset sum problem
hi @paidaarpit1505_f9664148aad841e0 your output will always be yes as you are not considering the case of non-emptiness of the numbers in sum
eg try
1
4
1 2 3 4
as is No but it will print yes as empty subset sums to 0
empty arr in the account then also it is not giving correct output
there is some issues with the site, i am submitting the code but it’s not getting submitted, i tried for say 9 to 10 times and this happens every day and wastes lot of time. where can i report such problems?
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.