Information générale
Catégorie:
Codage, syntaxe et commandes
Hi again,
when generating a combinaison of 5 elements from a collection of 20,
(to say nothing about the combinaisons of 4,3,2,1 items)
you will have 15,504 combinaisons, and Sergey's solution is the best.
when generating a combinaison of 5 elements from a collection of 50,
you will have 211,876 combinaisons,
when generating a combinaison of 5 elements from a collection of 100,
you will have 75,287,520 combinaisons. In that case you must "build" them
from an array, setting a "marked" flag by some loops in your 100-rows array(nice for your filter, to display them in a grid).
Arnaud
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement