Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BeeBombshell/Python-DSA
/ getRoot
Method
getRoot
Tree Data Structure/binarytree.py:12–13 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
10
self.root = None
11
12
def
getRoot(self):
13
return
self.root
14
15
#to add a new node in tree
16
def
add(self, val):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected