From c8539a630c62aacb7aeee7cbbbde5c00d4fe5502 Mon Sep 17 00:00:00 2001 From: Jody Zhou <56443135+JodyZ0203@users.noreply.github.com> Date: Wed, 11 Nov 2020 22:52:44 -0500 Subject: [PATCH] =?UTF-8?q?Update=20twoSum=E9=97=AE=E9=A2=98=E7=9A=84?= =?UTF-8?q?=E6=A0=B8=E5=BF=83=E6=80=9D=E6=83=B3.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...204\346\240\270\345\277\203\346\200\235\346\203\263.md" | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git "a/\347\256\227\346\263\225\346\200\235\347\273\264\347\263\273\345\210\227/twoSum\351\227\256\351\242\230\347\232\204\346\240\270\345\277\203\346\200\235\346\203\263.md" "b/\347\256\227\346\263\225\346\200\235\347\273\264\347\263\273\345\210\227/twoSum\351\227\256\351\242\230\347\232\204\346\240\270\345\277\203\346\200\235\346\203\263.md" index 1c71932..fef163c 100644 --- "a/\347\256\227\346\263\225\346\200\235\347\273\264\347\263\273\345\210\227/twoSum\351\227\256\351\242\230\347\232\204\346\240\270\345\277\203\346\200\235\346\203\263.md" +++ "b/\347\256\227\346\263\225\346\200\235\347\273\264\347\263\273\345\210\227/twoSum\351\227\256\351\242\230\347\232\204\346\240\270\345\277\203\346\200\235\346\203\263.md" @@ -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 - - -''' +``` -- GitLab