Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ __init__
Method
__init__
searches/binary_tree_traversal.py:11–14 ·
view source on GitHub ↗
(self, data)
Source
from the content-addressed store, hash-verified
9
10
class
TreeNode:
11
def
__init__(self, data):
12
self.data = data
13
self.right = None
14
self.left = None
15
16
17
def
build_tree() -> TreeNode:
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected