Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/HuberTRoy/leetCode
/ construct
Method
construct
Tree/serializeAndDeserialize.py:77–78 ·
view source on GitHub ↗
(self, constructDict)
Source
from the content-addressed store, hash-verified
75
return
{
"val"
: self.val,
"left"
: self.left and self.left._serialize(),
"right"
: self.right and self.right._serialize()}
76
77
def
construct(self, constructDict):
78
return
Node(**constructDict)
79
80
def
serialize(self):
81
Callers
1
__init__
Method · 0.95
Calls
1
Node
Class · 0.85
Tested by
no test coverage detected