未验证 提交 c8539a63 编写于 作者: J Jody Zhou 提交者: GitHub

Update twoSum问题的核心思想.md

上级 6ef4cbbf
......@@ -191,8 +191,7 @@ int[] twoSum(int[] nums, int target) {
;; 只用一个哈希表
'''Python
```Python3
class Solution:
def twoSum(self, nums, target):
"""
......@@ -211,6 +210,4 @@ class Solution:
return [i, hashTable[other_num]]
# 如果不存在的话继续处理剩余的数
hashTable[n] = i
'''
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册