Why should the palindrome(“1 eye for of 1 eye.”) return ‘false’?
I think the result must be ‘true’!
A palindrome is written the same way backwards, just read it.
Because its not a palindrome
"1 eye for of 1 eye." // Forward ".eye 1 fo rof eye 1" // Reversed
You’ll need to remove all non-alphanumeric characters (punctuation, spaces and symbols) and turn everything lower case in order to check for palindromes.
At the first (according to above note) we should remove all non-alphanumeric characters.
And the ‘eyeforofeye’ must be palindromes. Is not it?
Is a palindrome yes. The number 1 is an alphanumeric so it must stay
So the digits should not be removed.