I'm no good with recursive algorithms, but I know I've seen one that will do this for me. I need to know all permutations of a set of letters. Example: If the input is "ABC", the output would be:
Does anyone have a clue?
Code:
A AC CB BCA
B BA ABC CAB
C BC ACB CBA
AB CA BAC