mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-10-05 21:29:29 +00:00
Update merge_sort.py
This commit is contained in:
parent
6c58be4cf9
commit
6b60215fb5
|
@ -18,7 +18,7 @@ def merge_sort(collection: list) -> list:
|
|||
:return: The same collection ordered in ascending order.
|
||||
|
||||
Time Complexity: O(n log n)
|
||||
Space Complexity: O(n) due to the temporary arrays created during the merging process.
|
||||
Space Complexity: O(n)
|
||||
|
||||
Examples:
|
||||
>>> merge_sort([0, 5, 3, 2, 2])
|
||||
|
|
Loading…
Reference in New Issue
Block a user