Skip to content

Commit d6d089a

Browse files
Update doubly_linked_list_two.py
1 parent fab9674 commit d6d089a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

data_structures/linked_list/doubly_linked_list_two.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -243,23 +243,20 @@ def create_linked_list() -> None:
243243
''
244244
>>> linked_list.insert_at_position(position=1, value=10)
245245
>>> linked_list
246-
LinkedList(head=Node(data=10, previous=None, next=None), tail=Node(data=10, previous=None, next=None))
246+
LinkedList(
247+
head=Node(data=10, previous=None, next=None), tail=Node(data=10, previous=None, next=None))
247248
>>> str(linked_list)
248249
'10'
249250
>>> linked_list.insert_at_position(position=2, value=20)
250-
>>> linked_list
251251
>>> str(linked_list)
252252
'10 20'
253253
>>> linked_list.insert_at_position(position=1, value=30)
254-
>>> linked_list
255254
>>> str(linked_list)
256255
'30 10 20'
257256
>>> linked_list.insert_at_position(position=3, value=40)
258-
>>> linked_list
259257
>>> str(linked_list)
260258
'30 10 40 20'
261259
>>> linked_list.insert_at_position(position=5, value=50)
262-
>>> linked_list
263260
>>> str(linked_list)
264261
'30 10 40 20 50'
265262
"""

0 commit comments

Comments
 (0)