Weak test cases for this problem

According to the question our set of subsets should contain distinct subsets but I did not erase the same subsets still it passes.Any suggestions.

The elements are already distinct so no need to erase any subsets as they will be distinct.

Click here to start solving coding interview questions