MCPcopy
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

deserializeFunction · 0.85
constructMethod · 0.85
constructFromPrePostMethod · 0.85

Calls 2

NodeClass · 0.85
getMethod · 0.80

Tested by

no test coverage detected