Palindrome String Check with Two-Pointer Technique

DSA Practice – Palindrome String Check :- Approach Used: I implemented the two-pointer technique by comparing characters from the start and end of the string, moving towards the center. If any characters do not match, the string is not a palindrome. Otherwise, it is a palindrome. Time Complexity: O(n) Space Complexity: O(1) #JAVA #DSA

  • text

To view or add a comment, sign in

Explore content categories