Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/HuberTRoy/leetCode
/ TreeNode
Class
TreeNode
Tree/BinarySearchTree.py:12–18 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
10
# 生成树操作。
11
12
class
TreeNode(object):
13
14
def
__init__(self , val, left=None, right=None):
15
16
self.val = val
17
self.left = left
18
self.right = right
19
20
21
class
binarySearchTree(object):
Callers
12
makeBinarySearchTree
Method · 0.85
make
Method · 0.85
__init__
Method · 0.85
insert
Method · 0.85
makeTree
Method · 0.85
construct
Method · 0.85
constructFromPrePost
Method · 0.85
deserialize
Method · 0.85
_deserialize
Method · 0.85
__init__
Method · 0.85
add
Method · 0.85
makeBSTByInorder
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected