diff --git a/data_structures/linked_list/sorted_linked_list.py b/data_structures/linked_list/sorted_linked_list.py index eb0f14894..b1a8304c3 100644 --- a/data_structures/linked_list/sorted_linked_list.py +++ b/data_structures/linked_list/sorted_linked_list.py @@ -337,7 +337,7 @@ 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)