Skip to content

Commit 9ae2050

Browse files
committed
feat: solution
1 parent db2a084 commit 9ae2050

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

two-sum/jun-brro.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class Solution(object):
2+
def twoSum(self, nums, target):
3+
for i in range(len(nums)):
4+
for j in range(i + 1, len(nums)):
5+
if nums[i] + nums[j] == target:
6+
return [i, j]

0 commit comments

Comments
 (0)