def subsets(self, S):
        S.sort()
        result = []
        self.generate_subsets(S, [], result)
        return result
Similar to permutation and combinations
dataset/ETHPy150Open algorhythms/LeetCode/078 Subsets.py/Solution.subsets