We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40f65e8 commit 6c58be4Copy full SHA for 6c58be4
sorts/merge_sort.py
@@ -18,6 +18,7 @@ def merge_sort(collection: list) -> list:
18
:return: The same collection ordered in ascending order.
19
20
Time Complexity: O(n log n)
21
+ Space Complexity: O(n) due to the temporary arrays created during the merging process.
22
23
Examples:
24
>>> merge_sort([0, 5, 3, 2, 2])
0 commit comments