01
Choose a problem
Pick from problems across different topics and difficulty levels, then work through the description and examples.
Two Sum
Arrays · Hash Table
Given an array of integers nums and an integer target, return the indices of the two numbers that add up to the target.
nums = [2, 7, 11, 15]
target = 9