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 89e6318 commit f6e158eCopy full SHA for f6e158e
two-sum/do-heewan.py
@@ -0,0 +1,10 @@
1
+class Solution(object):
2
+ def twoSum(self, nums, target):
3
+ result = []
4
+ for i in range(len(nums)-1):
5
+ for j in range(i+1, len(nums)):
6
+ if (nums[i] + nums[j] == target):
7
+ result.append(i)
8
+ result.append(j)
9
+
10
+ return result
0 commit comments