Can someone tell me a way to print all possible combinations of a string of letters?
Eg. if I give the input "abc", it should give the output
abc
acb
bac
bca
cab
cba
I have a rudimentary knowledge of C/C++, and a (very very) little bit of Lisp/Scheme.
Eg. if I give the input "abc", it should give the output
abc
acb
bac
bca
cab
cba
I have a rudimentary knowledge of C/C++, and a (very very) little bit of Lisp/Scheme.
Comment