-5

Possible Duplicate:
Are there any better methods to do permutation of string?

I know recursion and can write programs like fibonacci number, tree traversals so I think I know it but when it comes to this question specifically I feel bad

Please guide me with how to calculate all possible permutations of a string

Community
  • 1
  • 1
daydreamer
  • 80,741
  • 175
  • 429
  • 691

1 Answers1

1

Here is good examples of different permutation algorithms, including recursive one: http://www.bearcave.com/random_hacks/permute.html

Andriy Tylychko
  • 15,609
  • 5
  • 59
  • 110