Pattern 22: LeetCode Interview Patterns24 sections · 736 units
Open in CourseQuiz: Two-Pointer Palindrome Movement
Test your understanding
Check Your Understanding
When checking if a string is a palindrome using two pointers, if the characters at both pointers match, what do you do next?
- A.Move both pointers toward the center
- B.Move only the right pointer left
- C.Move only the left pointer right
- D.Return true immediately