Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/subbarayudu-j/TheAlgorithms-Python
/ TreeNode
Class
TreeNode
traversals/binary_tree_traversals.py:14–18 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
12
13
14
class
TreeNode:
15
def
__init__(self, data):
16
self.data = data
17
self.right = None
18
self.left = None
19
20
21
def
build_tree():
Callers
1
build_tree
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected