Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^5: Challenge: Nearest Palindromic Number

by halley (Prior)
on Feb 02, 2005 at 19:45 UTC ( [id://427392]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Challenge: Nearest Palindromic Number
in thread Challenge: Nearest Palindromic Number

Which is why I initially mentioned that incrementing would be easy, to find the alternative. If the input isn't already palindromic, you have to find two palindromic alternatives. Roy Johnson wrote the code I foresaw: '10##'++ would be '1111'.

--
[ e d @ h a l l e y . c c ]

  • Comment on Re^5: Challenge: Nearest Palindromic Number

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://427392]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-24 02:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found