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

Method insert

Sorting Algorithims/mergesort_linkedlist.py:14–17  ·  view source on GitHub ↗
(self, new_data: int)

Source from the content-addressed store, hash-verified

12 self.head = None
13
14 def insert(self, new_data: int) -> None:
15 new_node = Node(new_data)
16 new_node.next = self.head
17 self.head = new_node
18
19 def printLL(self) -> None:
20 temp = self.head

Callers 3

Insertion_SortFunction · 0.45
Insertion_SortFunction · 0.45

Calls 1

NodeClass · 0.70

Tested by

no test coverage detected