Open acha-bill opened 4 years ago
A palindrome is a string that reads the same way to and fro. e.g dad, mom, Repaper, Madam, etc..
dad
mom
Repaper
Madam
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.
true
false
e.g
dad = true daddy = false
daddy
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
= truedaddy
= false