"be consistent" | |
PerlMonks |
Re^2: Efficient Unique Nested Combinationsby Limbic~Region (Chancellor) |
on Jun 26, 2007 at 00:05 UTC ( [id://623285]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|