Write a function to check that given string is palindrome or not.
A string is a palindrome if it can be read the same way in either forward or reverse direction. \( e.g \), `\( kayak \)'. It reads the same (\( k \) - \( a \) - \( y \) - \( a \) - \( k \)) from either direction. The algorithm works as :
Time complexity = \( O(n) \). public boolean checkStringIsPalindrome(String input){ < Better approach > Using one pointer variable public boolean checkStringIsPalindrome(String input){ |