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 1c719320d7652bcafe87e147a9ed495b8e54814e..fef163c5f18f1c01e28a3bccafff4c95bb105cd4 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 - - -''' +```