We don't bite newbies here... much | |
PerlMonks |
Re^2: Finding longest palindrome from a stringby Aristotle (Chancellor) |
on Aug 17, 2004 at 08:17 UTC ( [id://383581]=note: print w/replies, xml ) | Need Help?? |
That only generates even length palindromes. I instead suggest
Also, Don't Repeat Yourself. That's far too much copy-paste code there. Look at the benchmark script I wrote: much less code, and it tells you exactly which input strings each solution failed on and what it produced instead. Makeshifts last the longest.
In Section
Seekers of Perl Wisdom
|
|