Cominations (coding)

  • Thread starter Thread starter Warrio
  • Start date Start date
W

Warrio

Hello! This is only a question about coding,

how is it possible to calculate the possible combinations between a series
of members?
In addition the total number of the members of each series should not exceed
a fixed number.

For instance:
-the members are: (1; 2; 7; 9)
-each series must contain 3 members (can be 2, 3, 14 or any
number)

The result would be:
Series1: 1; 2; 7
Series2: 1; 2; 9
Series3: 2; 7; 9

I tried with 3 loops with a collection structure, but I differentiate my
head from feet anymore.

Thanks for any suggestion!
 
Back
Top