This forum is closed. Thank you for your contributions.
can some1 give the algo or the code(in C) for displaying all the permutation of a word...eg for "car", it has to print c,a,r,ca,ac,cr,car,arc etc ...
A simple solution, might not be the most efficient way to go about it:
void
{
swap<
permute(strInput, i);
}
printf(