Cloze

Two Sum

Easy Hash map · O(n) time, O(n) space · LeetCode ↗

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