Skip to content

Commit 2139485

Browse files
authored
Update circular_linked_list.py
1 parent ef43bf9 commit 2139485

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Data_Structure/src/Linked Lists/circular_linked_list.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#Another python program to implement and Insert a node by taking an pointer pointing to locations one want to insert a node to.
2+
#The insertion operations are carried out:
3+
#a. in empty linked list
4+
#b. at beginning of the linked list
5+
#c. at end of the linked list
6+
#d. in between the nodes
7+
18
class Node:
29

310
def init(self, data):
@@ -134,4 +141,4 @@ def traverse(self):
134141

135142
last = llist.addAfter(10,8)
136143

137-
llist.traverse()
144+
llist.traverse()

0 commit comments

Comments
 (0)