Skip to content
Snippets Groups Projects
Commit 594b9c96 authored by Dariya Kinadinova's avatar Dariya Kinadinova
Browse files

Update file merge_sort.py

parent 4dab7c6e
Branches
No related tags found
No related merge requests found
...@@ -193,9 +193,7 @@ def merge(l1: ApLst, l2: ApLst, ...@@ -193,9 +193,7 @@ def merge(l1: ApLst, l2: ApLst,
for k in range(1, len(h)+1): for k in range(1, len(h)+1):
l1 = ApLst(h[-k], l1) l1 = ApLst(h[-k], l1)
l2 = l2.tail() l2 = l2.tail()
return l1 return l1
list_to_native(merge(native_to_list([1, 3, 4, 9]), native_to_list([1, 2, 5])))
def mergesort(l: ApLst, comp: Callable[[T, T], int]=compare) -> ApLst: def mergesort(l: ApLst, comp: Callable[[T, T], int]=compare) -> ApLst:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment