I would like to know how to create all permutation of a given string in a recursive way.
Lets say that String a = "abcdefghijklmnopqrstxyz";
.
I would like to generate a string of length 5 (for example) from a
using recursion,
meaning:
- aaaaa
- aaaab
- aaaba
- aaaca
- zabfg
Thanks in advance.