Results 1 to 5 of 5

Thread: Permutation

  1. #1
    Claymz is offline Member
    Join Date
    Apr 2011
    Posts
    25
    Rep Power
    0

    Question Permutation

    Hi,

    my question is, how to make permutation over some elements, lets say the elements are of type List, and each element of List contains one Object (lest say "A", "B", "C", "D", "E, "F"). For this example, we need 720 combinations (6! = 720). I would be glad, if someone could show me with for loops, and afterwards, maybe also some easier way of doing this.

    Ty!
    Last edited by Claymz; 06-01-2011 at 12:53 AM.

  2. #2
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    That's not how this forum works. This is not a code generation forum, instead, you do the work and we help you.

  3. #3
    Claymz is offline Member
    Join Date
    Apr 2011
    Posts
    25
    Rep Power
    0

    Default

    Im sorry, i didnt mean it as i typed it, i really didnt! Anyway, i answered my question, thank you anyway!

  4. #4
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    Glad you solved it. I didn't mean to be berating you, I was merely telling you how things work around here.

  5. #5
    Claymz is offline Member
    Join Date
    Apr 2011
    Posts
    25
    Rep Power
    0

    Default

    I know how thing work around here and on every other forum as well, ne sure of that

Similar Threads

  1. Replies: 3
    Last Post: 08-24-2009, 08:39 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •