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 feb2dc0 commit 0585d30Copy full SHA for 0585d30
two-sum/Donghae0230.py
@@ -0,0 +1,8 @@
1
+class Solution:
2
+ def twoSum(self, nums: List[int], target: int) -> List[int]:
3
+ for i in range(0, len(nums)):
4
+ for l in range(0, len(nums)):
5
+ if i == l:
6
+ continue
7
+ if nums[i] + nums[l] == target:
8
+ return [i, l]
0 commit comments