Algorithm to generate subsets from multiple lists. Where each generated subset must add to a certain sum but use only one elements from each list?

前端 未结 0 812
攒了一身酷
攒了一身酷 2021-01-19 04:38

So given a sum of n and having k lists. Find all the subsets from k lists which add up to n. Provided you can and must use only 1 element from each list. I was asked this in

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