Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
That's a cheating!)
How it work?
Aah yes, sort. I tried using next_permutation, but I don't think it works with an unsorted string. Nice one!
Darn, I should've looked for a library function when Knuth said that people often want all the permutations :D
*yawn... no recursion
:D