Comment on "
Numeric Palindrome Finder in Ruby
"
by Jim Freeze — Dec 05
Here's a one liner:
x ="0"; puts x if x == x.reverse until x.succ! == "100000"
Back to "
Numeric Palindrome Finder in Ruby
"
Copyright © Scott Stevenson 2004-2015
by Jim Freeze — Dec 05
x ="0"; puts x if x == x.reverse until x.succ! == "100000"