-
-
Save anonymous/ff3a94e9cbed7b0b2f68 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def palindrome?(str) | |
normalString = str | |
reverseString = str.reverse | |
if ( normalString).each.match((reverseString).each) | |
return true; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment