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.
1 parent b7c1554 commit 106d6deCopy full SHA for 106d6de
two-sum/mrlee7.py
@@ -0,0 +1,10 @@
1
+from typing import List
2
+
3
4
+class Solution:
5
+ def twoSum(self, nums: List[int], target: int) -> List[int]:
6
7
+ for i in range(0, len(nums) - 1):
8
+ for j in range(i + 1, len(nums)):
9
+ if (target - nums[i]) == nums[j]:
10
+ return [i, j]
0 commit comments