Lesson 1 of 10 · 15 min Premium

Two sum

Find the two numbers in an array that add up to a target, in a single pass.

This problem is part of Premium

Interview-style problems with tests that check the tricky cases, to get you ready for coding interviews.