HomeRoot Equals Sum of Children1 2 3 def check_tree(root) (root.left.val + root.right.val) == root.val end
1 2 3
def check_tree(root) (root.left.val + root.right.val) == root.val end