Skip to content

Commit b83eeec

Browse files
committed
code updated
1 parent d78e489 commit b83eeec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

merge_sort_linked_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def getMiddle(self, head):
5959
slow = head
6060
fast = head
6161

62-
while slow.next is not None and slow.next.next is not None:
62+
while slow.next is not None and fast.next.next is not None:
6363

6464
slow = slow.next
6565
fast = fast.next.next

0 commit comments

Comments
 (0)