AlgoViz
← Back to trail

Two Pointers

Easy+60 XP

Find a pair summing to a target in a sorted array by converging two pointers.

⚠️

Where it breaks

Two pointers only works on a SORTED array. See what happens when you don't.

No visualization loaded.

Watch

i

Press Run to begin.

0/0
i / j being summedpair foundoutside the window

Practice problems