![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Generator of integer partitionts of nby Limbic~Region (Chancellor) |
on Sep 25, 2004 at 14:40 UTC ( #393792=note: print w/replies, xml ) | Need Help?? |
chiburashka,
Here is an iterative solution that produces output in ascending order and is about twice as fast as blokhead's in my rudimentary benchmarks. I am sure it could probably be improved a bit more but it is working and that's what's important. Cheers - L~R
In Section
Seekers of Perl Wisdom
|
|