From b95ea67ae05f95a0cc7ccdcb101a0be2c61cc090 Mon Sep 17 00:00:00 2001 From: pythaac <86088023+pythaac@users.noreply.github.com> Date: Sat, 7 Aug 2021 02:50:03 +0900 Subject: [PATCH] Update 60-1.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit return cur.next의 indentation 오류입니다. head의 while loop 안에서 1번 처리 후 종료됩니다. --- 5-algorithms/ch17/60-1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/5-algorithms/ch17/60-1.py b/5-algorithms/ch17/60-1.py index 82bd1c2..58edff0 100644 --- a/5-algorithms/ch17/60-1.py +++ b/5-algorithms/ch17/60-1.py @@ -15,4 +15,4 @@ def insertionSortList(self, head: ListNode) -> ListNode: cur.next, head.next, head = head, cur.next, head.next cur = parent - return cur.next + return cur.next