A sorted array with left/right pointers converging toward a target sum, the classic two-pointer interview pattern.
This is a live preview — pan and zoom to explore the diagram. Open it in the full editor below to edit, export, or share it.
When to use this Excalidraw example
Use it to walk through two-pointer problems (pair-sum, container-with-most-water, removing duplicates) and show how the pointers move based on the comparison.
Open this example in the full Excalidraw editorMake it your own
The example opens as a local drawing in the editor. Move or rename shapes, add arrows and notes, export PNG or SVG, or use the Share button to copy a compressed URL containing the current scene.