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 cacee96 commit b149e2dCopy full SHA for b149e2d
two-sum/shinsj4653.py
@@ -42,4 +42,6 @@ def twoSum(self, nums: List[int], target: int) -> List[int]:
42
return ret
43
44
else:
45
- diffDict[target - nums[i]] = i
+ diffDict[target - nums[i]] = i
46
+
47
+ return ret
0 commit comments