This commit is contained in:
mjk22071998 2024-10-01 15:43:52 +05:00
commit 53bd3be495

View File

@ -336,7 +336,8 @@ class SortedLinkedList:
self.tail = other_list.tail
return
else:
temp: Optional[Node]=other_list.head
temp : Optional[Node] = other_list.head
while temp:
self.insert(temp.data)
temp = temp.next_node