<reponame>kkcookies99/UAST<gh_stars>0
class Solution:
    def XXX(self, nums: List[int]) -> List[List[int]]:
        res = [[]]
        for num in nums:
            res.append([num])
            for temp in res[1:-1]:
                res.append(temp+[num])
        return res


class Solution:
    def XXX(self, nums: List[int]) -> List[List[int]]:
        res = [[]]
        for num in nums:
            res.append([num])
            for temp in res[1:-1]:
                res.append(temp+[num])
        return res