Two Sum
Given an array of integers and a target, return indices of two numbers that add up to target.
Approach: Hash Map — One Pass
Click play to start
Step 0 / 0
Press play to start the visualization.
1×
Given an array of integers and a target, return indices of two numbers that add up to target.