Question: write in c++ Given the string, check if it is a palindrome. Example For inputString = aabaa, the output should be checkPalindrome(inputString) = true; For
write in c++
Given the string, check if it is a palindrome.
Example
For inputString = "aabaa", the output should be checkPalindrome(inputString) = true;
For inputString = "abac", the output should be checkPalindrome(inputString) = false;
For inputString = "a", the output should be checkPalindrome(inputString) = true.
Input/Output
[time limit] 500ms (cpp)
[input] string inputString
A non-empty string consisting of lowercase characters.
Guaranteed constraints: 1 inputString.length 105.
[output] boolean
true if inputString is a palindrome, false otherwise.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
