mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-05-16 22:26:45 +00:00
"Fixed typo in class name and added quotes to __repr__ output"
This commit is contained in:
parent
c290421ba8
commit
9a73b0a78e
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user