Keep It Simple, Stupid | |
PerlMonks |
Re^3: Factorial algorithm execution timeby Aristotle (Chancellor) |
on Oct 18, 2002 at 17:41 UTC ( [id://206377]=note: print w/replies, xml ) | Need Help?? |
You're right. But why so much work? A trivial modification to my code will do that.
Update: doh, fixed overly clever, broken code. (s{1 + $#factor / 2}{@factor / 2}) Makeshifts last the longest.
In Section
Seekers of Perl Wisdom
|
|