Thread: Input-based permutation

  1. #1
    Registered User TmX's Avatar
    Join Date
    Sep 2006
    Posts
    14

    Input-based permutation

    Let's say I have a string "abcdef"
    If I input n = 3, how to create a permutation of 3 like this :
    abc
    abd
    abe
    ...
    ...
    edf ?

  2. #2
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    1. Write a permutation algorithm.
    2. Split string into pieces of n length.
    3. ???
    4. Profit!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. About aes
    By gumit in forum C Programming
    Replies: 13
    Last Post: 10-24-2006, 03:42 PM
  2. Structure and Linked List User Input Question
    By kevndale79 in forum C Programming
    Replies: 16
    Last Post: 10-05-2006, 11:09 AM
  3. Binary based input
    By DonW in forum C Programming
    Replies: 2
    Last Post: 09-21-2004, 12:43 AM
  4. Custom Made Safe Input Function
    By Beast() in forum C Programming
    Replies: 6
    Last Post: 08-21-2004, 10:19 PM
  5. need help with some input
    By blindleaf in forum C Programming
    Replies: 2
    Last Post: 03-16-2003, 01:50 PM