Top 50 Two Pointers Interview Questions
The most frequently asked Two Pointers questions across all roles and companies, ranked by real interview frequency. Updated weekly.
Return all unique integer pairs that sum to a target using sorting or a hash-based approach.
Meta
OpenX
RecroFind two indices in an unsorted array whose values sum to a target using a hash table in O(n) time.
NiCE
Amazon
University of UtahUse a sliding window and hash map to find the length of the longest substring without repeated characters.
Capital One
Walmart
MetaReverse a string represented as a character array using a two-pointer approach in O(n) time.
Literati
Latch
QVCExplain a repeatable approach for solving medium LeetCode problems, including pattern recognition and time-space tradeoffs.
Facebook
Mercor
UC San DiegoDetermine whether a string is a palindrome using a two-pointer scan from both ends.
Air Apps
& General Intuition
OpenAISign up to see every question
Create a free account to unlock this list and practice real interview questions.
Open any question for its full solution and discussion.
Browse all questions →