Loading Thita. Almost there...
Two Pointers Pattern · 1 of 7
Master Floyd's tortoise and hare algorithm for cycle detection. Detect cycles in linked lists and find duplicate numbers.
Access the full theory, code examples, and practice problems.
Start LearningLearn converging two pointers for sorted arrays. Solve two sum, three sum, and container problems efficiently.
Master the expand from center technique for finding palindromic substrings and longest palindrome problems.
Learn to compare strings with backspace characters using two pointers from the end.
Master string reversal techniques including reverse string, reverse words, and reverse vowels using two pointers.