leetcode--数组(Easy)

2019.08.02 1.返回和为指定值的两数的索引python 基本思想:哈希表 实现:把数组中的值做为key,索引做为value,在一此遍历的过程当中,一边转map,一边查找符合要求的两个数 def twoSum(self, nums: List[int], target: int) -> List[int]: _dict = {} for i, m in enum
相关文章
相关标签/搜索