From af61bc83329d6f9378389d2e6ee35d4d5dff7eb6 Mon Sep 17 00:00:00 2001 From: whaifree <49432110+whaibetter@users.noreply.github.com> Date: Sat, 1 Jun 2024 09:44:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E8=AF=B4=E6=98=8E=EF=BC=9A?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=BA=86=E4=B8=80=E4=B8=AA=E7=A9=BA=E8=A1=8C?= =?UTF-8?q?=E4=BB=A5=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81=E7=BB=93=E6=9E=84?= =?UTF-8?q?=EF=BC=8C=E5=B9=B6=E5=9C=A8Solution=E7=B1=BB=E4=B8=AD=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=BA=86=E6=B3=A8=E9=87=8A=E4=BB=A5=E6=8F=90=E9=AB=98?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=8F=AF=E8=AF=BB=E6=80=A7=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cn/whaifree/redo/redo_all_240511/LeetCode206.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/cn/whaifree/redo/redo_all_240511/LeetCode206.java b/src/main/java/cn/whaifree/redo/redo_all_240511/LeetCode206.java index 05c9262..46e99f7 100644 --- a/src/main/java/cn/whaifree/redo/redo_all_240511/LeetCode206.java +++ b/src/main/java/cn/whaifree/redo/redo_all_240511/LeetCode206.java @@ -18,7 +18,6 @@ public class LeetCode206 { listNode.printList(); ListNode listNode1 = new Solution().reverseList(listNode); listNode1.printList(); - } class Solution { @@ -34,7 +33,10 @@ public class LeetCode206 { ListNode next = after.next; after.next = pre; ListNode reverse = reverse(after, next); + + return reverse; + } } }