From af5c278e32039de6732804596bde78ab23ef7658 Mon Sep 17 00:00:00 2001 From: bg6mgd Date: Fri, 6 Dec 2024 16:16:59 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=89auto=20update=20by=20Gmeek=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...e-shu-\357\274\214-shu-chu-zhe-liang-ge-shu-de-suo-yin.html" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/docs/post/2024-nian-9-yue-14-ri-zai-lie-biao-zhong-zhao-dao-liang-ge-shu-de-he-deng-yu-mou-ge-shu-\357\274\214-shu-chu-zhe-liang-ge-shu-de-suo-yin.html" "b/docs/post/2024-nian-9-yue-14-ri-zai-lie-biao-zhong-zhao-dao-liang-ge-shu-de-he-deng-yu-mou-ge-shu-\357\274\214-shu-chu-zhe-liang-ge-shu-de-suo-yin.html" index d8e90b3..eb84189 100644 --- "a/docs/post/2024-nian-9-yue-14-ri-zai-lie-biao-zhong-zhao-dao-liang-ge-shu-de-he-deng-yu-mou-ge-shu-\357\274\214-shu-chu-zhe-liang-ge-shu-de-suo-yin.html" +++ "b/docs/post/2024-nian-9-yue-14-ri-zai-lie-biao-zhong-zhao-dao-liang-ge-shu-de-he-deng-yu-mou-ge-shu-\357\274\214-shu-chu-zhe-liang-ge-shu-de-suo-yin.html" @@ -102,7 +102,7 @@

2024年9月14日在列表中找到两个数的和等于某
class Solution:
-    def twoSum(self, nums: List[int], target: int) -> List[int]:
+    def twoSum(self, nums: List[int], target: int) -> List[int]:
          hash_map = {}
         for i, num in enumerate(nums):
             complement = target - num  # 计算目标值需要的差值