Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/BeeBombshell/Python-DSA
/ preorder_traversal.py
File
preorder_traversal.py
Tree Data Structure/preorder_traversal.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
class
TreeNode:
2
def
__init__(self, data, left = None, right = None):
3
self.data = data
4
self.left = left
Callers
nothing calls this directly
Calls
3
preorderTraversal
Method · 0.80
Solution
Class · 0.70
make_tree
Function · 0.70
Tested by
no test coverage detected