If no elements in the set then we can’t make any subset except for 0. If sum needed is 0 then by returning the empty subset we can make the subset with sum 0.
If no elements in the set then we can’t make any subset except for 0.If sum needed is 0 then by returning the empty subset we can make the subset with sum 0.