Permutations / Combinations
I´m trying to get all possible combinations of a list of 10 integers. What I struggle with is how to get all possible combinations of not only the given values, but also smaller numbers than the values in the list. For example "1, 1, 1, 1, 1, 1, 1, 1, 1, 1" is a valid combination for "10, 10, 10, 10, 10, 10, 10, 10, 10, 10". Is this what permutation is all about? I guess the numbers get insane quickly here : ) Thanks for your help in advance!
Apparently I patched a pow for the last hour. Many thanks, now I know I had the right numbers already.
Hello All,
Recently I developed this external in javascript. It's my first project in javascript, so I look forward to read your comments and feedback if you use it.
https://github.com/dcocharro/dc.combine