From 617b68bad049642f1487ab3343a806ee0d069639 Mon Sep 17 00:00:00 2001 From: CyC2018 Date: Fri, 23 Oct 2026 04:39:44 +0800 Subject: [PATCH] =?UTF-8?q?Update=2057.1=20=E5=92=8C=E4=B8=BA=20S=20?= =?UTF-8?q?=E7=9A=84=E4=B8=A4=E4=B8=AA=E6=95=B0=E5=AD=97.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- notes/57.1 和为 S 的两个数字.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes/57.1 和为 S 的两个数字.md b/notes/57.1 和为 S 的两个数字.md index 8d15f13d..2f82aac4 100644 --- a/notes/57.1 和为 S 的两个数字.md +++ b/notes/57.1 和为 S 的两个数字.md @@ -20,7 +20,7 @@ public ArrayList FindNumbersWithSum(int[] nums, int target) { int i = 0, j = nums.length - 1; while (i < j) { - int cur = nums[i] + array[j]; + int cur = nums[i] + nums[j]; if (cur == target) return new ArrayList<>(Arrays.asList(nums[i], nums[j])); if (cur < target)