MCPcopy
hub / github.com/HuberTRoy/leetCode / deserialize

Function deserialize

Tree/serializeAndDeserialize.py:85–92  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

83
84
85def deserialize(string):
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
94
95# test

Callers 1

Calls 1

constructFunction · 0.85

Tested by

no test coverage detected