Design a method that returns all subsets of a set.

data-structure

#1

Design a method that returns all subsets of a set.


#2

Link


#3

backtrack or using bitmask