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 2e2bf9a commit 3dc3be4Copy full SHA for 3dc3be4
merge-k-sorted-lists/HC-kang.ts
@@ -10,7 +10,7 @@
10
/**
11
* https://leetcode.com/problems/merge-k-sorted-lists
12
* T.C. O(n * k^2) n: average length of list, k: number of lists
13
- * S.C. O(k)
+ * S.C. O(1)
14
*/
15
function mergeKLists(lists: Array<ListNode | null>): ListNode | null {
16
if (lists.length === 0) return null;
0 commit comments