Recursive way to get cartesian product of two lists

后端 未结 0 1515
攒了一身酷
攒了一身酷 2020-12-01 07:21

I need to get a cartesian product of two lists but I need to uses recursion.

If I have these two lists list1=[1,2] and list2=[\'a\',\'b\',\'c\'] and it has to return

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