MCPcopy Index your code
hub / github.com/BeeBombshell/Python-DSA / make_tree

Function make_tree

Tree Data Structure/binarytree_maxpath.py:28–32  ·  view source on GitHub ↗
(elements)

Source from the content-addressed store, hash-verified

26 else:
27 que.append(temp.right)
28def make_tree(elements):
29 Tree = TreeNode(elements[0])
30 for element in elements[1:]:
31 insert(Tree, element)
32 return Tree
33class Solution(object):
34 def maxPathSum(self, root):
35 self.ans = -float('inf')

Callers 1

Calls 2

TreeNodeClass · 0.70
insertFunction · 0.70

Tested by

no test coverage detected