mardi 17 mars 2015

How to generate all possible combinations of set of numbers?


Vote count:

0




Can anyone please tell me how to generate all possible combinations of unique set of numbers from given numbers.


e.g. If I have eight numbers = 1,2,3,4,5,6,7,8 and I want to generate all possible combinations of 2 digits.


With this formula n!/(n-r)!(r)!, we can calculate all possible combinations, but can anyone please tell me how to generate all those combinations??



asked 53 secs ago







How to generate all possible combinations of set of numbers?

Aucun commentaire:

Enregistrer un commentaire