From f9123b9f95831f5e0387784e9c6a9cc95c731ebf Mon Sep 17 00:00:00 2001 From: yan bo Date: Tue, 21 Mar 2023 01:31:05 +0000 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E6=94=B9=20189=20=E9=A2=98?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 0189-Rotate-Array/Article/0189-Rotate-Array.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/0189-Rotate-Array/Article/0189-Rotate-Array.md b/0189-Rotate-Array/Article/0189-Rotate-Array.md index e67fbdef..c41c1747 100644 --- a/0189-Rotate-Array/Article/0189-Rotate-Array.md +++ b/0189-Rotate-Array/Article/0189-Rotate-Array.md @@ -65,6 +65,8 @@ class Solution { int tmp = nums[start]; nums[start] = nums[end]; nums[end] = tmp; + start++; + end--; } } }