Two Sum
Store each seen number in a dictionary keyed by value. For each new number, check whether target minus number has already appeared.
Return the indices of two numbers that add up to a target.
Store each seen number in a dictionary keyed by value. For each new number, check whether target minus number has already appeared.
Store each seen number in a dictionary keyed by value. For each new number, check whether target minus number has already appeared.
Return the indices of two numbers that add up to a target.