Find subsets of a set in python (order does not matter)

后端 未结 0 1052
时光取名叫无心
时光取名叫无心 2020-12-16 19:34

I need to find the subsets of a set L = [0, 3, 4, 6, 9, 11, 12, 13]. I saw online the following solution:

def powerset(s):
    x = len(s)
    ma         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题