Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/subbarayudu-j/TheAlgorithms-Python
/ getRoot
Method
getRoot
data_structures/avl.py:169–170 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
167
print(curr_node.label, end=
" "
)
168
169
def
getRoot(self):
170
return
self.root
171
172
t = AVL()
173
t.insert(1)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected