What is an elegant way to find all the permutations of a string. E.g. permutation for ba, would be ba and ab, but what about longer string such as abcdefgh? Is there any Java implementation example?

56 Answers
56

Leave a Reply

Your email address will not be published. Required fields are marked *