We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
0 parents commit 7d43110Copy full SHA for 7d43110
two-sum
@@ -0,0 +1,10 @@
1
+Given an array of integers, return indices of the two numbers such that they add up to a specific target.
2
+
3
+You may assume that each input would have exactly one solution, and you may not use the same element twice.
4
5
+Example:
6
7
+Given nums = [2, 7, 11, 15], target = 9,
8
9
+Because nums[0] + nums[1] = 2 + 7 = 9,
10
+return [0, 1].
0 commit comments