Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ TreeNode
Class
TreeNode
data_structures/binary_tree/diff_views_of_binary_tree.py:16–19 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
14
15
@dataclass
16
class
TreeNode:
17
val: int
18
left: TreeNode | None = None
19
right: TreeNode | None = None
20
21
22
def
make_tree() -> TreeNode:
Callers
1
make_tree
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected