Question Description. Link
Given the string, check if it is a palindrome.
-
Palindrome
A string that doesn't change when reversed (it reads the same backward and forward).
"eye"is a palindrome"noon"is a palindrome"decaf faced"is a palindrome"taco cat"is not a palindrome (backwards it spells"tac ocat")"racecars"is not a palindrome (backwards it spells"sracecar")
- For
inputString = "aabaa", the output should becheckPalindrome(inputString) = true - For
inputString = "abac", the output should becheckPalindrome(inputString) = false - For
inputString = "a", the output should becheckPalindrome(inputString) = true