Fixed typo in merge function

This commit is contained in:
mjk22071998 2024-10-01 15:24:11 +05:00
parent fdbea27d41
commit 8334ee6032

View File

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