MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / is_sum_tree.py

File is_sum_tree.py

data_structures/binary_tree/is_sum_tree.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""
2Is a binary tree a sum tree where the value of every non-leaf node is equal to the sum
3of the values of its left and right subtrees?
4https://www.geeksforgeeks.org/check-if-a-given-binary-tree-is-sumtree

Callers

nothing calls this directly

Calls 2

build_a_treeMethod · 0.80
build_a_sum_treeMethod · 0.80

Tested by

no test coverage detected