Skip to content

Commit

Permalink
merge-two-sorted-lists: time complexity adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
taewanseoul committed Jan 3, 2025
1 parent 2ed2557 commit d2bc9df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion merge-two-sorted-lists/taewanseoul.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/

// O(n + m) time
// O(1) space
// O(n + m) space
function mergeTwoLists(
list1: ListNode | null,
list2: ListNode | null
Expand Down

0 comments on commit d2bc9df

Please sign in to comment.