MCPcopy
hub / github.com/Jack-Lee-Hiter/AlgorithmsByPython / size

Method size

Lists.py:36–42  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34 self.head = temp
35
36 def size(self):
37 current = self.head
38 count = 0
39 while current != None:
40 count += 1
41 current = current.getNext()
42 return count
43
44 def search(self, item):
45 current = self.head

Callers

nothing calls this directly

Calls 1

getNextMethod · 0.80

Tested by

no test coverage detected