Skip to content

Commit 809e74b

Browse files
committed
Fix comments
1 parent 121bfda commit 809e74b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

data_structures/linked_list/merge_sort_linked_list.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ def merge_sort_linked_list(head: Node | None) -> Node | None:
156156
next_to_middle = middle.next
157157
middle.next = None # Split the list into two parts
158158

159-
left = merge_sort_linked_list(head) # Sort the left half
160-
right = merge_sort_linked_list(next_to_middle) # Sort the right half
161-
sorted_list = merge(left, right) # Merge the sorted halves
159+
left = merge_sort_linked_list(head) # Sort left half
160+
right = merge_sort_linked_list(next_to_middle) # Sort right half
161+
sorted_list = merge(left, right) # Merge sorted halves
162162
return sorted_list
163163

164164

0 commit comments

Comments
 (0)