Root Equals Sum of Children

RedAurtherRedAurther
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

0
Subscribe to my newsletter

Read articles from RedAurther directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

RedAurther
RedAurther