From db65adc25832602292d411c2889f2fc691814579 Mon Sep 17 00:00:00 2001 From: vannessa Date: Thu, 26 Dec 2024 11:08:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96=20=E4=B8=89?= =?UTF-8?q?=E6=95=B0=E5=92=8C=20=E7=AE=97=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/_posts/3.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/_posts/3.md b/source/_posts/3.md index e89f900..8c7cace 100644 --- a/source/_posts/3.md +++ b/source/_posts/3.md @@ -47,10 +47,8 @@ public: while (l < r && nums[l] == left); do --r; while (l < r && nums[r] == right); - } else if (sum < 0) - ++l; - else - --r; + } else if (sum < 0) ++l; + else --r; } } return res;