Skip to content

When sorting removes the need

A sorted array is searched for a pair summing to a target. A student proposes a table over index and running sum.

Why is that the wrong tool?