1. Two Sum

Return the indices of the two numbers in nums that add up to target. Exactly one answer exists and an element may not be used twice.

Patterns: hashing. Difficulty: easy.

Open in Dryrun