Skip to content

Commit 46b07a0

Browse files
authored
Update Merge Two Sorted Lists - Leetcode 21.py
1 parent 18cb262 commit 46b07a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Merge Two Sorted Lists - Leetcode 21.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ def mergeTwoLists(self, list1: Optional[ListNode], list2: Optional[ListNode]) ->
1616
cur.next = list1 if list1 else list2
1717

1818
return d.next
19+
20+
# Time Complexity: O(n)
21+
# Space Complexity: O(1)

0 commit comments

Comments
 (0)