1. Two Sum
Given an array of integers, returnindicesof the two numbers such that they add up to a specific target.
You may assume that each input would haveexactlyone solution, and you may not use thesameelement twice.
Example:
Thoughts: map key-value pair of component of the sum
Last updated
Was this helpful?