Two Sum II - Input Array Is Sorted: Interactive Visualizer

Use the sorted order to squeeze two pointers inward until the sum matches the target.