【问题标题】:recursion - all permuations of a string [duplicate]递归 - 字符串的所有排列 [重复]
【发布时间】:2011-11-22 06:52:33
【问题描述】:

可能重复:
Are there any better methods to do permutation of string?

我知道递归并且可以编写像fibonacci numbertree traversals 这样的程序,所以我想我知道,但是当涉及到这个问题时,我感觉很糟糕

请指导我如何计算字符串的所有可能排列

【问题讨论】:

  • 按照我的指南:在 SO 搜索框中写下标题。
  • 你试过什么?

标签: string algorithm recursion permutation


【解决方案1】:

这里是不同排列算法的好例子,包括递归算法:http://www.bearcave.com/random_hacks/permute.html

【讨论】:

    猜你喜欢
    • 2014-12-03
    • 2017-02-17
    • 1970-01-01
    • 2017-01-18
    • 1970-01-01
    • 1970-01-01
    • 2015-02-20
    • 2023-04-11
    相关资源
    最近更新 更多