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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!