mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-07 10:00:55 +00:00
Update adaptive_merge_sort.py
This commit is contained in:
parent
b17141a342
commit
513ed29db5
|
@ -22,7 +22,6 @@ def adaptive_merge_sort(sequence: list) -> list:
|
||||||
print(f"Sorted sequence: {sequence}")
|
print(f"Sorted sequence: {sequence}")
|
||||||
return sequence
|
return sequence
|
||||||
|
|
||||||
|
|
||||||
def adaptive_merge_sort_helper(array: list, aux: list, low: int, high: int) -> None:
|
def adaptive_merge_sort_helper(array: list, aux: list, low: int, high: int) -> None:
|
||||||
"""
|
"""
|
||||||
Helper function for Adaptive Merge Sort algorithm.
|
Helper function for Adaptive Merge Sort algorithm.
|
||||||
|
@ -48,7 +47,6 @@ def adaptive_merge_sort_helper(array: list, aux: list, low: int, high: int) -> N
|
||||||
return
|
return
|
||||||
merge(array, aux, low, mid, high)
|
merge(array, aux, low, mid, high)
|
||||||
|
|
||||||
|
|
||||||
def merge(array: list, aux: list, low: int, mid: int, high: int) -> None:
|
def merge(array: list, aux: list, low: int, mid: int, high: int) -> None:
|
||||||
"""
|
"""
|
||||||
Merges two sorted subarrays of the main array.
|
Merges two sorted subarrays of the main array.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user