Two Sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
Two Sum

Given an array of integers, return indices of the two numbers such that they add up to a specific target.

Example 1:
Input: {"nums":[2,7,11,15],"target":9}
Output: [0,1]
Input
arr ={"nums":[2,7,11,15],"target":9}
nums (Target: 9)2071112153
HashMap

Empty

Variables
No variables to display
DepthFunction Call
1twoSum(nums=[4], target=9)
0/8