Array element
Left pointer
Right pointer
Found pair
Ruled out

Controls

Time: O(n) | Space: O(1)

Steps

0 steps

Press Run to trace the algorithm one step at a time.