class Solution:

    def twoSum(self, nums: List[int], target: int) ->List[int]:
        hm = {}
        for k, v in enumerate(nums):
            if target - v in hm:
                return [hm[target - v], k]
            else:
                hm[v] = k

d6b8e88d13911aa457954e5d1a30c94503618e79
<mask token>

class Solution:
    <mask token>

class Solution:

    def twoSum(self, nums: List[int], target: int) ->List[int]:
        hm = {}
        for k, v in enumerate(nums):
            if target - v in hm:
                return [hm[target - v], k]
            else:
                hm[v] = k
