Find an algorithm (subroutine) that when called repeatedly with the same character-string variable that is initialized with n characters, all different, will cycle through all the permutations of those n characters, so that for example, when called 24 times with a string of length 4, will have cycled that string through all 24 permutations and returned it to its initial state.
(In reply to
Solution by friedlinguini)
Can you give the output for 4 letter solution (ABCD) or 5 letter solution (ABCDE)... if it wouldn't be too hard... I am better at seeing things than reading things
|
Posted by Gamer
on 2003-07-03 14:29:57 |