Two Sum (Leetcode #1)
Question:
Given an array of integers nums and an integer target, return the indices of the two numbers such that they add up to the target.
Constraints:
Each input would have exactly one solution.
The same element cannot be used twice.
Examples:
...
earthcode.hashnode.dev2 min read