Originally posted by Manisekar Chinnasami:
in detail ... if the input string is "man", then the output should be ...
(all itz combinations)
man
mna
amn
anm
nma
nam
....
Did you mean permutations or combinations ? The example you gave are permutations.
Apart from that there are standard algorithms for getting the permutation. Just try google.
[ August 07, 2007: Message edited by: Srikanth Basavaraju ]