← Problems

two pointers

4 problems, easiest first. Every one is open — nothing here is locked behind the others.

0 / 4 solved

SolvedProblemTopicDifficulty
Remove Duplicates from Sorted Arraytwo-pointersmedium
Three Sumtwo-pointersmedium
Container With Most Watertwo-pointershard
Trapping Rain Watertwo-pointershard
Stuck on the pattern rather than the problem? The two pointers lesson walks through it with an animation you can step through.