From d2bc9df61081c40011f9c6f33f2fa085beb57858 Mon Sep 17 00:00:00 2001 From: Taewan Lim Date: Fri, 3 Jan 2025 22:09:03 +0900 Subject: [PATCH] merge-two-sorted-lists: time complexity adjustment --- merge-two-sorted-lists/taewanseoul.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/merge-two-sorted-lists/taewanseoul.ts b/merge-two-sorted-lists/taewanseoul.ts index 1fdd3f964..ece78b220 100644 --- a/merge-two-sorted-lists/taewanseoul.ts +++ b/merge-two-sorted-lists/taewanseoul.ts @@ -20,7 +20,7 @@ */ // O(n + m) time -// O(1) space +// O(n + m) space function mergeTwoLists( list1: ListNode | null, list2: ListNode | null