Skip to content

Commit 306a073

Browse files
committed
Fix
1 parent 091b5ce commit 306a073

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

data_structures/linked_list/doubly_linked_list_two.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,17 +237,24 @@ def create_linked_list() -> None:
237237
8
238238
9
239239
>>> linked_list = LinkedList()
240+
>>> linked_list
241+
>>> str(linked_list)
240242
>>> linked_list.insert_at_position(position=1, value=10)
241243
>>> linked_list
244+
>>> str(linked_list)
242245
LinkedList(head=Node(data=10, previous=None, next=None), tail=Node(data=10, previous=None, next=None))
243246
>>> linked_list.insert_at_position(position=2, value=20)
244247
>>> linked_list
248+
>>> str(linked_list)
245249
>>> linked_list.insert_at_position(position=1, value=30)
246250
>>> linked_list
251+
>>> str(linked_list)
247252
>>> linked_list.insert_at_position(position=2, value=40)
248253
>>> linked_list
254+
>>> str(linked_list)
249255
>>> linked_list.insert_at_position(position=3, value=50)
250256
>>> linked_list
257+
>>> str(linked_list)
251258
"""
252259

253260

0 commit comments

Comments
 (0)