From b7fef5c16931c1252e17109b62ef9d1af018ac48 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 11:33:12 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- data_structures/linked_list/sorted_linked_list.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/data_structures/linked_list/sorted_linked_list.py b/data_structures/linked_list/sorted_linked_list.py index 3a8ff9b0e..da1f593f3 100644 --- a/data_structures/linked_list/sorted_linked_list.py +++ b/data_structures/linked_list/sorted_linked_list.py @@ -113,7 +113,7 @@ class SortedLinkedList: >>> linkedList.insert(57) >>> linkedList.insert(45) >>> linkedList.display() - 32 45 57 + 32 45 57 """ temp: Node | None = self.head while temp: @@ -141,11 +141,11 @@ class SortedLinkedList: >>> linkedList.insert(57) >>> linkedList.insert(45) >>> linkedList.display() - 32 45 57 + 32 45 57 >>> linkedList.delete(45) True >>> linkedList.display() - 32 57 + 32 57 """ if self.head is None: return False @@ -166,7 +166,7 @@ class SortedLinkedList: self.num_nodes -= 1 return True temp_node = temp_node.next_node - + return False def search(self, data: int) -> bool: @@ -295,10 +295,10 @@ class SortedLinkedList: >>> linkedList.insert(45) >>> linkedList.insert(45) >>> linkedList.display() - 32 45 45 57 + 32 45 45 57 >>> linkedList.remove_duplicates() >>> linkedList.display() - 32 45 57 + 32 45 57 """ temp: Node | None = self.head