Two Sum 题目:https://leetcode.com/problems/two-sum/ class Solution(object): def twoSum(self, nums, target): map = {} for index, value in enumerate(nums): if target - value in map: return [map[target - value] + 1, index + 1] map[value] = index Add Two N…