Checking Palindromes with Java Two-Pointer Logic

Day 3 | Problem 2 – Palindrome String Today I practised checking whether a string is a palindrome using basic two-pointer logic. Approach used: • Start comparing characters from the left and right ends • If characters match, move both pointers inward • If any mismatch occurs, the string is not a palindrome • If the loop completes, the string is a palindrome This problem helped me understand string traversal, indexing, and conditional logic more clearly. #Java #DSA #StringProblems #LearningInPublic

  • graphical user interface, text

To view or add a comment, sign in

Explore content categories