⌨️ Coding Patterns (DSA) path
Two Pointers interview questions and study guide
5 lessons from beginner to advanced. Each lesson explains the concept, shows a worked example and lists the follow-up questions interviewers ask next.
Start with lesson 1 →Beginner 2 lessons
- Check whether a string is a valid palindrome (ignoring case and non-alphanumerics). Compare StringBuilder, streams and two pointers.
- Remove duplicates from a sorted array in place (and move zeroes). Compare new collections, streams and read/write pointers.
Intermediate 2 lessons
- 3Sum: find all unique triplets that sum to zero. Show brute force, HashSet and sort + two pointers.
- Container with most water. Why does moving the shorter line work?