PRACTICE

Two Pointers Interview Questions

39 Two Pointers problems asked across FAANG and top tech companies. Approach hints, optimal solutions, and related problems.

Ready to try these in a real interview?

I'm Alex. I'll interview you on 2 problems like these at your level, ask follow-ups, and give you a scored report.

πŸ”’

to save your progress.

Companies

Topics

Two Pointers 39
15.3Sum
ArrayTwo PointersSorting
Medium+5β–Ά Mock
11.Container With Most Water
ArrayTwo PointersGreedy
Medium+6β–Ά Mock
42.Trapping Rain Water
ArrayTwo PointersStack
283.Move Zeroes
ArrayTwo Pointers
567.Permutation in String
Hash TableTwo PointersString
75.Sort Colors
ArrayTwo PointersSorting
189.Rotate Array
ArrayMathTwo Pointers
Medium+1β–Ά Mock
88.Merge Sorted Array
ArrayTwo PointersSorting
167.Two Sum II - Input Array Is Sorted
ArrayTwo PointersBinary Search
125.Valid Palindrome
Two PointersString
977.Squares of a Sorted Array
ArrayTwo PointersSorting
31.Next Permutation
ArrayTwo Pointers
2503.Maximum Number of Points from Grid Queries
ArrayTwo PointersBreadth-First Search
16.3Sum Closest
ArrayTwo PointersSorting
18.4Sum
ArrayTwo PointersSorting
870.Advantage Shuffle
ArrayTwo PointersGreedy
141.Linked List Cycle
Hash TableLinked ListTwo Pointers
986.Interval List Intersections
ArrayTwo PointersSweep Line
287.Find the Duplicate Number
ArrayTwo PointersBinary Search
1048.Longest String Chain
ArrayHash TableTwo Pointers
845.Longest Mountain in Array
ArrayTwo PointersDynamic Programming
658.Find K Closest Elements
ArrayTwo PointersBinary Search
27.Remove Element
ArrayTwo Pointers
3649.Number of Perfect Pairs
ArrayMathTwo Pointers
443.String Compression
Two PointersString
Happy Number
Hash TableMathTwo Pointers
244.Shortest Word Distance II
ArrayHash TableTwo Pointers
475.Heaters
ArrayTwo PointersBinary Search
723.Candy Crush
ArrayTwo PointersMatrix
838.Push Dominoes
Two PointersStringDynamic Programming
1055.Shortest Way to Form String
Two PointersStringBinary Search

Practice with a Mock Interview

Solve these Two Pointers problems under real interview pressure with our AI interviewer.

Start Mock Interview β†’