Skip to content

Commit eb3284d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f331afd commit eb3284d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sorts/adaptive_merge_sort.py

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def adaptive_merge_sort(sequence: list) -> list:
2323
print(f"Sorted sequence: {sequence}")
2424
return sequence
2525

26+
2627
def adaptive_merge_sort_helper(array: list, aux: list, low: int, high: int) -> None:
2728
"""
2829
Helper function for Adaptive Merge Sort algorithm.
@@ -49,6 +50,7 @@ def adaptive_merge_sort_helper(array: list, aux: list, low: int, high: int) -> N
4950
return
5051
merge(array, aux, low, mid, high)
5152

53+
5254
def merge(array: list, aux: list, low: int, mid: int, high: int) -> None:
5355
"""
5456
Merges two sorted subarrays of the main array.

0 commit comments

Comments
 (0)