class Solution:
- def twoSum(self, nums: List[int], target: int) -> List[int]:
+ def twoSum(self, nums: List[int], target: int) -> List[int]:
hash_map = {}
for i, num in enumerate(nums):
complement = target - num # 计算目标值需要的差值