Deep Dive
Two Pointers
167. Two Sum II · Arrays & Strings · 1 of 78
1/6
Sorted, find a pair
In this lessonStep 1 of 6 · ← → keys
The question
In a sorted array, find two numbers that add up to a target, using O(1) extra space.
167. Two Sum II · Arrays & Strings · 1 of 78
Sorted, find a pair
In a sorted array, find two numbers that add up to a target, using O(1) extra space.