jsacademyio / Data-Structures-And-Algorithms-Workshop

This is the repository for the Data Structures & Algorithms workshop
MIT License
2 stars 11 forks source link

Palindrome #12

Open acha-bill opened 4 years ago

acha-bill commented 4 years ago

A palindrome is a string that reads the same way to and fro. e.g dad, mom, Repaper, Madam, etc..

Write a function that given a string, returns true if the string is a palindrome. false if it is not. N.B The string will not contain spaces.

e.g

dad = true daddy = false