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

Method __setitem__

BinarySearchTree.py:77–78  ·  view source on GitHub ↗
(self, k, v)

Source from the content-addressed store, hash-verified

75 currentNode.rightChild = TreeNode(key, val, parent=currentNode)
76
77 def __setitem__(self, k, v):
78 self.put(k, v)
79
80 def get(self, key):
81 if self.root:

Callers

nothing calls this directly

Calls 1

putMethod · 0.95

Tested by

no test coverage detected