mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-20 21:49:48 +00:00
changed a typo (#2396)
This commit is contained in:
parent
1385e47c36
commit
3b1c4f72ce
@ -102,7 +102,7 @@ class CircularLinkedList:
|
|||||||
|
|
||||||
def prepend(self, data: Any) -> None:
|
def prepend(self, data: Any) -> None:
|
||||||
"""
|
"""
|
||||||
Adds a ndoe with given data to the front of the CircularLinkedList
|
Adds a node with given data to the front of the CircularLinkedList
|
||||||
>>> cll = CircularLinkedList()
|
>>> cll = CircularLinkedList()
|
||||||
>>> cll.prepend(1)
|
>>> cll.prepend(1)
|
||||||
>>> cll.prepend(2)
|
>>> cll.prepend(2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user