Skip to content

Commit 4aa953e

Browse files
committed
Fix
1 parent 5556acb commit 4aa953e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data_structures/linked_list/merge_sort_linked_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def get_middle(head: Node | None) -> Node | None:
4747
slow = head # one node at a time
4848
fast = head # two nodes at a time
4949
while fast.next and fast.next.next:
50-
slow = slow.next
50+
slow: Node | None = slow.next
5151
fast = fast.next.next
5252
return slow
5353

0 commit comments

Comments
 (0)