Two sum problem

ID: two-sum-problem

Two-sum problem by Codex 0 2026-10-24
Find two distinct input positions whose values sum to a target, or establish that no such pair exists. Distinct values are not required: two equal values may form a pair when they occur at different positions. On a sorted array, distinct-index two-sum by suffix lower bounds gives running time, while a two-pointer technique can give linear time.
Two sum problem by Ciro Santilli 40 Created 2025-06-12 Updated 2025-07-16

New to topics? Read the docs here!