Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Efficient Unique Nested Combinations

by Limbic~Region (Chancellor)
on Jun 26, 2007 at 00:05 UTC ( [id://623285]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://623285]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-24 06:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found