MCPcopy Create free account
hub / github.com/Jack-Lee-Hiter/AlgorithmsByPython / findMin

Method findMin

BinarySearchTree.py:160–164  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

158 return succ
159
160 def findMin(self):
161 current = self
162 while current.hasLeftChild():
163 current = current.leftChild
164 return current
165
166 def remove(self, currentNode):
167 if currentNode.isLeaf(): # leaf

Callers 1

findSuccessorMethod · 0.45

Calls 1

hasLeftChildMethod · 0.45

Tested by

no test coverage detected