it is passing for
1
0
βββ
2
3 -3
βββ
4
1 2 3 3
please check and tell me what is wrong with my code
Can you please tell me what is wrong with my code?
the problem is solved
the problem was
that I was taking
βbool flag=false;β as a global variable
and when I updated it from function it did not go back to false so for multiple cases if the second case was
βNOβ it was still printing
βYESβ
Question :-subset sum easy
link to soln:-https://ide.codingblocks.com/s/627934