[help] String permutation with input

Discussion in 'C Programming' started by fadliwdt, Nov 17, 2006.

  1. fadliwdt

    fadliwdt

    Joined:
    Nov 17, 2006
    Messages:
    2
    [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
     
    fadliwdt, Nov 17, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Roger B.
    Replies:
    13
    Views:
    604
    D.F.S.
    Sep 26, 2003
  2. Sriram Rajagopalan

    String Permutation function in C

    Sriram Rajagopalan, Oct 29, 2003, in forum: C Programming
    Replies:
    7
    Views:
    13,168
  3. fadliwdt

    [help] String permutation with input

    fadliwdt, Nov 17, 2006, in forum: C Programming
    Replies:
    0
    Views:
    509
    fadliwdt
    Nov 17, 2006
  4. fool

    printing the permutation, help

    fool, Jul 7, 2006, in forum: C Programming
    Replies:
    6
    Views:
    378
    Flash Gordon
    Jul 8, 2006
  5. Michael Press

    More help requested on permutation code.

    Michael Press, Mar 24, 2006, in forum: Perl Misc
    Replies:
    8
    Views:
    142
    Michael Press
    Mar 30, 2006
Loading...

Share This Page