Root Equals Sum of Children

1 min read
๐ง Problem
You are given the root of a binary tree that consists of exactly 3 nodes: the root, its left child, and its right child. Return true if the value of the root is equal to the sum of the values of its two children, or false otherwise.
๐ท๏ธ Tags
Tree, binary tree
๐ Difficulty
Easy
โ
Success Rate: 91.4%
๐ฅ Submissions: 4,698
๐ Accepted: 4,294
โค๏ธ Reactions
๐ Likes: 56
๐ Dislikes: 103
๐ก Hints
๐ Similar Questions
Leetcode Link : Root Equals Sum of Children
0
Subscribe to my newsletter
Read articles from RedAurther directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
