Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b95ea67

Browse files
authored
Update 60-1.py
return cur.next의 indentation 오류입니다. head의 while loop 안에서 1번 처리 후 종료됩니다.
1 parent f5eaa62 commit b95ea67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎5-algorithms/ch17/60-1.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ def insertionSortList(self, head: ListNode) -> ListNode:
1515
cur.next, head.next, head = head, cur.next, head.next
1616

1717
cur = parent
18-
return cur.next
18+
return cur.next

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /