How to recursively produce all permutations of a word?

前端 未结 0 844
闹比i
闹比i 2020-11-29 01:31

e.g ABC = ABC,ACB,BCA,CAB etc

Without using slicing or importing any modules - please advise :)

I would like a recursive solution - without any extra modules i

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