mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-31 06:33:44 +00:00
Fix
This commit is contained in:
parent
81d2d511d8
commit
6211693833
|
@ -160,10 +160,6 @@ def merge_sort_linked_list(head: Node | None) -> Node | None:
|
|||
right = merge_sort_linked_list(next_to_middle) # Sort right half
|
||||
|
||||
# Merge sorted halves
|
||||
if left is None:
|
||||
return right
|
||||
if right is None:
|
||||
return left
|
||||
sorted_list = merge(left, right)
|
||||
return sorted_list
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user