def get_subset(self, S, current, result):
        result.append(current)
        for ind, val in enumerate(S):
            # JUMP, avoid duplicates
            if ind-1>=0 and val==S[ind-1]:  # ensure uni-direction
                continue
            self.get_subset(S[ind+1:], current+[val], result)
dataset/ETHPy150Open algorhythms/LeetCode/090 Subsets II.py/Solution.get_subset/original