Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_Sort
Function · 0.45
Insertion_Sort
Function · 0.45
mergesort_linkedlist.py
File · 0.45
Calls
1
Node
Class · 0.70
Tested by
no test coverage detected