http://www.perlmonks.org?node_id=407042


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