子集

tech2022-08-25  118

class Solution: def subsets(self, nums: List[int]) -> List[List[int]]: res = [[]] for i in nums: for num in res: print(i) print(num) print(res) res = res + [[i]+num] print (res) return 0
最新回复(0)