Skip to content

Instantly share code, notes, and snippets.

@MonaTem
Created March 26, 2018 14:25
Show Gist options
  • Save MonaTem/a317e9b69d637e5b5e7f6d3e6562345d to your computer and use it in GitHub Desktop.
Save MonaTem/a317e9b69d637e5b5e7f6d3e6562345d to your computer and use it in GitHub Desktop.
Palindrome warmup

A palindrome is a string that reads the same forward and backward. So for example, racecar is a palindrome.

Palindromes are not very strict.

  • They're case insensitive (Bob).
  • They ignore spaces (taco cat).
  • They ignore punctuation (Go hang a salami! I'm a lasagna hog!)

Write a function that takes a string as input and returns true if the string is a palindrome, false if it isn't. Follow the bullet points and make it as loose as you can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment