-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
  • 87,243
  • 191
  • 450
  • 722

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,967
  • 6
  • 64
  • 112