MCPcopy Index your code
hub / github.com/BeeBombshell/Python-DSA / add

Method add

Tree Data Structure/binarytree.py:16–20  ·  view source on GitHub ↗
(self, val)

Source from the content-addressed store, hash-verified

14
15 #to add a new node in tree
16 def add(self, val):
17 if self.root is None:
18 self.root = Node(val)
19 else:
20 self._add(val, self.root)
21
22 # to add elemnts in tree
23 def _add(self, val, node):

Callers 3

genFunction · 0.80
dfsFunction · 0.80
binarytree.pyFile · 0.80

Calls 2

_addMethod · 0.95
NodeClass · 0.70

Tested by

no test coverage detected