[help] String permutation with input

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

  1. fadliwdt

    fadliwdt

    Joined:
    Nov 17, 2006
    Messages:
    2
    Likes Received:
    0
    [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. Advertisements

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:
    781
    D.F.S.
    Sep 26, 2003
  2. m sergei
    Replies:
    4
    Views:
    11,343
    Philip Parker
    Jun 29, 2004
  3. Sriram Rajagopalan

    String Permutation function in C

    Sriram Rajagopalan, Oct 29, 2003, in forum: C Programming
    Replies:
    7
    Views:
    13,446
  4. Talin

    Permutation Generator

    Talin, Aug 12, 2005, in forum: Python
    Replies:
    10
    Views:
    15,379
    Gerard Flanagan
    Aug 15, 2005
  5. fadliwdt

    [help] String permutation with input

    fadliwdt, Nov 17, 2006, in forum: C Programming
    Replies:
    0
    Views:
    590
    fadliwdt
    Nov 17, 2006
  6. artem

    permutation with repetition

    artem, Feb 23, 2007, in forum: Java
    Replies:
    6
    Views:
    2,491
  7. fool

    printing the permutation, help

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

    More help requested on permutation code.

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