Please enter your email address or userHandle.
Given a string S, check if it is palindrome or not.
Input: S = "abba"
Explanation: S is a palindrome
Input: S = "abc"
Explanation: S is not a palindrome
You don't need to read input or print anything. Complete the function isPlaindrome() which accepts string S and returns a boolean value
Expected Time Complexity: O(Length of S)
Expected Auxiliary Space: O(1)
1 <= Length of S <= 105
We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?
Login to access your submissions.
Please choose 'ReadOnlyMode' if you needn't to 'Edit' the problem e.g. viewing OJ's solution, TestCase Files (TCFs), TimeLimit etc.