What would be the best possible algorithm for finding out all the combinations a given string can be rearranged.

It should even consider cases for repeated characters

Any other strategy than brute force would be appreciated

This topic has been dead for over six months. Start a new discussion instead.

Recommended Topics