sir ye code test case pass kyu nahi kar raha hai
Subsets sum easy
for every test case the code shows o/p Yes
make changes
if not able to do so ping again
mam maine code change toh kara hai magar abhi bhi woh output galat de raha hai.
ab sabke liye no h
check out this simple recursive code
mam ab toh dono case ke liya sahi de raha hai jab bhi test case galat kyu ho raha hai
mam mera ye wala code 1 test case k liya toh kaam kar raha hai magar t testcase k liya nahi kar raha hai
aisa kyu?
bro
u are missing endl
for each test case
mam abhi bhi output galat aa raha hai
for
1
4
1 3 2 -3
k liya output galat hai.
iska answer yes hoga
4
1 3 2 3
ka answer no hoga
I seriously recommend u to check out my code
mam apka code m cnt kya hai
uska koi use hi h
u can remove that parameter