':type nums: List[int]
:type target: int
:rtype: List[int]'

def twoSum(self, nums, target):

    lookup = {}
    for (i, num) in enumerate(nums):
        if ((target - num) in lookup):
            return [lookup[(target - num)], i]
        lookup[num] = i
    return []
