Google
 
Webcprogramming.com




An Affiliate of AIHorizon




String Permutation Challenge

Here is another mathematical problem, where the trick is as much to discover the algorithm as it is to write the code: write a program to display all possible permutations of a given input string. Input should be of the form

permute string
and output should be a word per line.

Here is a sample for the input cat

cat
cta
act
atc
tac
tca

View Solution

-----
Interested in advertising with us?
Please read our privacy policy.
Copyright © 1997-2005 Cprogramming.com. All rights reserved.

Geodesy Designs