We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c58be4 commit 6b60215Copy full SHA for 6b60215
sorts/merge_sort.py
@@ -18,7 +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.
+ Space Complexity: O(n)
22
23
Examples:
24
>>> merge_sort([0, 5, 3, 2, 2])
0 commit comments