Perl Monk, Perl Meditation | |
PerlMonks |
Re: how can I speed up this perl??by Abigail-II (Bishop) |
on Nov 24, 2003 at 21:59 UTC ( [id://309712]=note: print w/replies, xml ) | Need Help?? |
Well, we were not given the loop, but if $i increments
by one, that is, it counts overlapping pairs, your solution
is not equivalent, as it doesn't count overlapping pairs.
Abigail
In Section
Seekers of Perl Wisdom
|
|