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 9e13250 commit c4c9cedCopy full SHA for c4c9ced
0001-two-sum/solution.py
@@ -5,7 +5,7 @@
5
6
class Solution:
7
def twoSum(self, nums: List[int], target: int) -> List[int]:
8
- hashmap = dict() # value: index
+ hashmap = dict() # {value: index}
9
10
for i, num in enumerate(nums):
11
complement = target - num
0 commit comments