MCPcopy Create free account
hub / github.com/geekcomputers/Python / Push

Method Push

Split_Circular_Linked_List.py:11–21  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

9 self.head = None
10
11 def Push(self, data):
12 temp = Node(data)
13 temp.next = self.head
14 temp1 = self.head
15 if self.head is not None:
16 while temp1.next is not None:
17 temp1 = temp1.next
18 temp1.next = temp
19 else:
20 temp.next = temp
21 self.head = temp
22
23 def Split_List(self, head1, head2):
24 if self.head is None:

Callers 1

Calls 1

NodeClass · 0.70

Tested by

no test coverage detected