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 f7540e3 commit 3e88765Copy full SHA for 3e88765
two-sum/doh6077.py
@@ -5,4 +5,5 @@ def twoSum(self, nums: list[int], target: int) -> list[int]:
5
diff = target - n
6
if diff in prevMap:
7
return [prevMap[diff], i]
8
- prevMap[n] = i
+ prevMap[n] = i
9
+
0 commit comments