Solution set have duplicate subsets which is contradiction to given problem statement


#1

Your Input: 3 5 0 0
Expected output is [] [0 ] [0 ] [0 0 ] [0 0 5 ] [0 5 ] [0 5 ] [5 ]


#3

Actually , in problem statement it is given that Set has distinct integers.
so there is no way to have duplicate subsets in solution.