← ALL NOTES
Array

1. Two Sum

Everyone's first hash-map problem, so I'll skip the ceremony. Given an array nums and a target, return the indices of the two numbers that add up to target — exactly one answer, no reusing an element.

Loading…