Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: PHP algorithm

  1. #1
    New Coder
    Join Date
    Feb 2005
    Thanked 0 Times in 0 Posts

    PHP algorithm

    Guys i have been trying to make this algorythm but with no sucess, can
    you help me out ?

    The problem is the follow

    for the following numberset like 1,2,3,4,5,6,7,8,9,10,11,12 i need to
    take all the five number combinations, six number combinations and the
    seven number combinations, this cant be "hardcoded", this need to be
    flexible because at any time i may need all the 3 number combinations
    and later i may need numbersets of 15 or even more.

    Need a little help with this guys

    Note: this is not for a school work or project
    There are only 10 types of people in the world: Those who understand binary, and those who don't.
    Wich one are you ?

  • #2
    Regular Coder
    Join Date
    Aug 2008
    Northern Ireland
    Thanked 6 Times in 6 Posts
    When you say 5 number combinations, do you mean (in the above example) {1,2,3,4,5},{6,7,8,9,10} etc as output.

    Or do you mean 5 random numbers generated from the set of numbers given?


    Posting Permissions

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