Skip to content

Commit 3e88765

Browse files
committed
two sum solution
1 parent f7540e3 commit 3e88765

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

two-sum/doh6077.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ def twoSum(self, nums: list[int], target: int) -> list[int]:
55
diff = target - n
66
if diff in prevMap:
77
return [prevMap[diff], i]
8-
prevMap[n] = i
8+
prevMap[n] = i
9+

0 commit comments

Comments
 (0)