We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0ae744 commit 4acf117Copy full SHA for 4acf117
sorts/heap_sort.ts
@@ -4,7 +4,7 @@
4
* @see [Heap Sort](https://www.geeksforgeeks.org/heap-sort/)
5
* @example MergeSort([7, 3, 5, 1, 4, 2]) = [1, 2, 3, 4, 5, 7]
6
* @Complexity_Analysis
7
- * Space complexity - O(n)
+ * Space complexity - O(1)
8
* Time complexity
9
* Best case - O(nlogn)
10
* Worst case - O(nlogn)
0 commit comments