"Fixed typo in class name and added quotes to __repr__ output"

This commit is contained in:
mjk22071998 2024-10-02 06:47:20 +05:00
parent c290421ba8
commit 9a73b0a78e

View File

@ -63,7 +63,7 @@ class SortedLinkedList:
>>> linkedList.insert(23) >>> linkedList.insert(23)
>>> linkedList.insert(72) >>> linkedList.insert(72)
>>> linkedList.__repr__() >>> linkedList.__repr__()
2, 12, 21, 23, 72 '2, 12, 21, 23, 72'
""" """
nodes = [] nodes = []
temp: Node | None = self.head temp: Node | None = self.head
@ -317,7 +317,7 @@ class SortedLinkedList:
Doctests Doctests
>>> linkedList=SortedLinkedListt() >>> linkedList=SortedLinkedList()
>>> linkedList.insert(32) >>> linkedList.insert(32)
>>> linkedList.insert(57) >>> linkedList.insert(57)
>>> linkedList.insert(45) >>> linkedList.insert(45)