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.
2 parents bc727bf + 74efaf7 commit c01ab5aCopy full SHA for c01ab5a
java/23-Merge-k-Sorted-Lists.java
@@ -1,6 +1,6 @@
1
// Solution using Min Heap
2
// Time Complexity: O(n*log(k))
3
-// Extra Space Complexity: O(n)
+// Extra Space Complexity: O(k)
4
5
class Solution1 {
6
public ListNode mergeKLists(ListNode[] lists) {
0 commit comments