Problems/Two Sum

Two Sum

easy
arrayhash-map

> Preview exemplar: this prompt keeps the study route readable when seeded content cannot be read.

Given a list of integers and a target integer, return the positions of two distinct entries whose values add to the target. This preview assumes one valid pair exists, and the same entry cannot be used twice.

Solution patterns
hash map of seen values
Two Sum -- LeetPrep Studio | LeetPrep Studio