Skip to content

Instantly share code, notes, and snippets.

@niquepa
Created March 13, 2018 16:39
Show Gist options
  • Save niquepa/c2f56fb0c64390854211cb2a5f4cdb0a to your computer and use it in GitHub Desktop.
Save niquepa/c2f56fb0c64390854211cb2a5f4cdb0a to your computer and use it in GitHub Desktop.
check if a string is a palindrome
def check_palindrome(string)
string.downcase == string.downcase.reverse
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment