Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > [help] String permutation with input

Reply
Thread Tools

[help] String permutation with input

 
 
fadliwdt fadliwdt is offline
Junior Member
Join Date: Nov 2006
Posts: 2
 
      11-17-2006
[help] String permutation with input

Can give me the logic of permuting a string in C language.

Hint: PLease use recursive.

example:
input:
string = ABCD
n = 3

output:
ABC
ABD
ACB
ACD
ADB
ADC
BAC
BAD
.
.
.
etc
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[help] String permutation with input fadliwdt C Programming 0 11-17-2006 11:19 PM
Permutation Generator Talin Python 10 08-15-2005 03:27 PM
algorithm for finding permutation of characters m sergei C++ 4 06-29-2004 08:04 AM
String Permutation function in C Sriram Rajagopalan C Programming 7 10-30-2003 08:18 PM
Permutation lists?? Really Need Help Roger B. C++ 13 09-26-2003 02:21 AM



Advertisments