Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mathematics knundrum
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00780672
Message ID:
00780832
Vues:
19
Bruce,

If all of the numbers are positive (which may or may not be a good assumption), you (that's a rhetorical you <g>) could design it to short circuit and move on as soon as any combination of numbers exceeds the target...
>
>Which is a total of 10 + 45 + 120 + 210 + 252 + 210 + 120 + 45 + 10 + 1 = 1,033 different possible sums that must all be checked, unless a "hit" is found and the loop can end sooner.
>
>(If my math is correct, usually I let a program do the factorial & summing work :-)
>
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform