Algorithm to print all permutations of a string with no duplicates
17,666
This is actually a good question since permutations are used fairly frequently and can be hard to implement especially without redundancies. Of course the algorithm is pretty simple. Here is a good site to help you out (after googling around for a second). Check it out, hope its what you are looking for! http://www.bearcave.com/random_hacks/permute.html
Author by
Craig Locke
I'm a Tennessee expat, foodie, product developer, and Washingtonian
Updated on June 05, 2022Comments
-
Craig Locke almost 2 years
Can you give me an algorithm to print all permutations of a string, with no duplicates, both recursively and iteratively?
-
jzworkman about 12 yearsIts not a good question at all, he asks for code without any examples or what he has tried, its a duplicate of like three other exact questions and doesnt show any prior research. Read the FAQ.