Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/HuberTRoy/leetCode
/ construct
Function
construct
Tree/serializeAndDeserialize.py:88–90 ·
view source on GitHub ↗
(treeDict)
Source
from the content-addressed store, hash-verified
86
constructDict = json.loads(string)
87
88
def
construct(treeDict):
89
90
return
Node(treeDict.get(
'val'
), treeDict.get(
'left'
), treeDict.get(
'right'
))
91
92
return
construct(constructDict)
93
Callers
3
deserialize
Function · 0.85
construct
Method · 0.85
constructFromPrePost
Method · 0.85
Calls
2
Node
Class · 0.85
get
Method · 0.80
Tested by
no test coverage detected