Generate all possible combinations using a set of strings

前端 未结 4 1198
小鲜肉
小鲜肉 2020-12-16 08:17

I\'m trying to generate all possible combinations of a set of strings, using each string maximum once.

  • The length of the output string isn\'t defined (the max
4条回答
  •  生来不讨喜
    2020-12-16 08:47

    Here's my naive recursive implementation:

    (No idea what I did, of course)

    http://codepad.org/5OKhsCJg

提交回复
热议问题