Syntactic Confectionery Delight | |
PerlMonks |
Re^4: Challenge: Nearest Palindromic Numberby Limbic~Region (Chancellor) |
on Feb 02, 2005 at 19:34 UTC ( [id://427390]=note: print w/replies, xml ) | Need Help?? |
halley,
Forgive my hasty initial response. I knew your method was flawed but gave a bad test case. 999 and 1001 are both valid when the input is 1000. Your method fails on the updated test case though 1085. The correct answer should be 1111. Cheers - L~R
In Section
Seekers of Perl Wisdom
|
|