From 8334ee60326ab5a9e9ef1e523bf4c865d9fe31b5 Mon Sep 17 00:00:00 2001 From: mjk22071998 Date: Tue, 1 Oct 2024 15:24:11 +0500 Subject: [PATCH] Fixed typo in merge function --- data_structures/linked_list/sorted_linked_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data_structures/linked_list/sorted_linked_list.py b/data_structures/linked_list/sorted_linked_list.py index 8a133e568..4c0020fa8 100644 --- a/data_structures/linked_list/sorted_linked_list.py +++ b/data_structures/linked_list/sorted_linked_list.py @@ -336,7 +336,7 @@ class SortedLinkedList: self.tail = other_list.tail return else: - temp=otherother_list.head + temp=other_list.head while temp: self.insert(temp.data) temp=temp.next_node