Find out if Binary Tree is Sum tree or Not

Problem: Binary Tree is Sum tree or Not. [Problem Link] Explanation: Write a function which returns True if the given binary tree is a Sum Tree, else False. A sum tree a is a binary tree where the value of a node is the summation of the subtree at both its left and right. An …

Find out if Binary Tree is Sum tree or Not Read More »