Skip to content

Commit db9be4f

Browse files
authored
Update doubly_linked_list.py
1 parent 1e2bbeb commit db9be4f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

data_structures/linked_list/doubly_linked_list.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
class LinkedList: # making main class named linked list
1313
"""
1414
>>> linked_list = LinkedList()
15-
>>> linked_list.insert_head("a")
16-
>>> linked_list.insert_tail("b")
17-
>>> _ = linked_list.delete_tail()
15+
>>> linked_list.insertHead("a")
16+
>>> linked_list.insertTail("b")
17+
>>> _ = linked_list.deleteTail()
1818
>>> linked_list.isEmpty()
1919
True
20-
>>> linked_list.delete_head()
20+
>>> linked_list.deleteHead()
2121
None
2222
>>> linked_list.isEmpty()
2323
False

0 commit comments

Comments
 (0)