Two Pointer Algorithm Visualization (Pair Sum)

What is the Two Pointer Technique?

The two pointer technique involves using two indices to traverse the array from different directions. In this visualization, we try to find a pair that sums to a target value.

Left pointer at 0, Right pointer at N-1