<jupyter_start><jupyter_text>Two Sum<jupyter_code>class Solution:
    def twoSum(self, nums: List[int], target: int) -> List[int]:
        nums_hashmap = {}
        for i in range(len(nums)):
            nums_hashmap[nums[i]] = i 
            
        for j in range(len(nums)):
            y = target-nums[j]
            
            if y in nums_hashmap and nums_hashmap[y] != j:
                return [j, nums_hashmap[y]]<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup