From 5d98fd74dc9d554c563f947b422cadece7ca02ce 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 10:49:39 +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 71f25e3b2..0df47e369 100644 --- a/data_structures/linked_list/sorted_linked_list.py +++ b/data_structures/linked_list/sorted_linked_list.py @@ -116,7 +116,7 @@ class SortedLinkedList: >>> linkedList.insert(57) >>> linkedList.insert(45) >>> linkedList.display() - 32 45 57 + 32 45 57 """ temp: Optional[Node] = self.head while temp: @@ -144,11 +144,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 @@ -296,10 +296,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: Optional[Node] = self.head @@ -327,7 +327,7 @@ class SortedLinkedList: >>> linkedList2.insert(95) >>> linkedList.merge(linkedList2) >>> linkedList.display() - 23 32 45 47 57 95 + 23 32 45 47 57 95 """ if other_list.head is None: return