Easy · Arrays & hashing
Two Sum
Given an array of integers and a target, return the indices of the two numbers that add up to the target. Every input has exactly one answer.
nums = [2, 7, 11, 15] target = 9 → [0, 1]Record your take
Easy · Arrays & hashing
Given an array of integers and a target, return the indices of the two numbers that add up to the target. Every input has exactly one answer.
nums = [2, 7, 11, 15] target = 9 → [0, 1]Record your take