summaryrefslogtreecommitdiff
path: root/1_array_hashing/two_sum.py
diff options
context:
space:
mode:
Diffstat (limited to '1_array_hashing/two_sum.py')
-rw-r--r--1_array_hashing/two_sum.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/1_array_hashing/two_sum.py b/1_array_hashing/two_sum.py
index 676c32b..42ad48e 100644
--- a/1_array_hashing/two_sum.py
+++ b/1_array_hashing/two_sum.py
@@ -36,12 +36,12 @@ Constraints:
-10,000,000 <= target <= 10,000,000
"""
-from typing import List
+from typing import Dict, List
class Solution:
def hashmap(self, nums: List[int], target: int) -> List[int]:
- hm: dict = {}
+ hm: Dict = {}
for i, index in enumerate(nums):
if target - index in hm:
return [hm[target - index], i]