Cloze

Hash mapEasy

Two Sum

Find the two numbers in nums that add up to target, and return their indices.

Aim for O(n) time, O(n) spaceInspired by a classic interview problem ↗