Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: How to generate restricted partitions of an integer

by tachyon (Chancellor)
on Nov 11, 2004 at 14:13 UTC ( #407042=note: print w/replies, xml ) Need Help??


in reply to Re: How to generate restricted partitions of an integer
in thread How to generate restricted partitions of an integer

686 loops for yours. 8316 for the original. 197 for mine which uses a slightly more optimised fail fast.
  • Comment on Re^2: How to generate restricted partitions of an integer

Replies are listed 'Best First'.
Re^3: How to generate restricted partitions of an integer
by fergal (Chaplain) on Nov 11, 2004 at 16:14 UTC

    46 for mine :-)

    function calls, not loops though :-(

    Updated was 67 but I moved an if and reduced it to 46

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2020-10-26 22:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (254 votes). Check out past polls.

    Notices?