  class Solution:
    def twoSum(self, nums: List[int], target: int) -> List[int]:
        seen = dict()
        for i, n in enumerate(nums):
            if n in seen:
                return [seen[n], i]
            seen[target - n] = i
        return []
