getting wrong answer for trstcases , plss help me to resolve it.
Getting wrong answer
ur approach will also consider empty subset as well .
and becuase empty subset will have 0 sum , ur code will always print yes .
but in question they are asking for non empty subset.
to resolve this issue.
maintain count of 0 sum SUBSET.
if count > 1 then print yes (1 is for empty set)
otherwise print nO
ok I will try to do it
Got AC sir, ty very much