Skip to content

Commit 6211693

Browse files
committed
Fix
1 parent 81d2d51 commit 6211693

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

data_structures/linked_list/merge_sort_linked_list.py

-4
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,6 @@ def merge_sort_linked_list(head: Node | None) -> Node | None:
160160
right = merge_sort_linked_list(next_to_middle) # Sort right half
161161

162162
# Merge sorted halves
163-
if left is None:
164-
return right
165-
if right is None:
166-
return left
167163
sorted_list = merge(left, right)
168164
return sorted_list
169165

0 commit comments

Comments
 (0)