MCPcopy
hub / github.com/jwasham/practice-python / append

Method append

linked_lists/linked_list.py:65–75  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

63 self.set_head(node)
64
65 def append(self, value):
66 node = Node(value)
67 current = self.head_
68 if not current:
69 self.head_ = node
70 return
71
72 while current.get_next():
73 current = current.get_next()
74
75 current.set_next(node)

Callers 15

mainFunction · 0.95
array_testFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
count_upFunction · 0.80
mainFunction · 0.80
dfsMethod · 0.80
contains_cycleMethod · 0.80
topological_sortMethod · 0.80
dfs_forwardMethod · 0.80
scc_dfs_reverse_passMethod · 0.80

Calls 3

NodeClass · 0.90
get_nextMethod · 0.80
set_nextMethod · 0.80

Tested by 1

mainFunction · 0.64