in reply to Re: Efficient Unique Nested Combinations
in thread Efficient Unique Nested Combinations

Roy Johnson,
I think you just want to ensure that each element is greater-than-or-equal-to the previous one, so:

That's exactly one the shortcuts I used in Challenge: Number of unique ways to reach target sum. I am going to update Arbitrarily Nested Loops to mention NestedLoops and the Odometer Model fwiw. Everytime I refer to someone to one of them, I have to look up the other.

Cheers - L~R

  • Comment on Re^2: Efficient Unique Nested Combinations