LeetCodeRoot Equals Sum of ChildrenRoot Equals Sum of ChildrenEasyTreeBinary TreeSolution import { TreeNode } from '@algorithm/lib'; export function checkTree(root: TreeNode | null): boolean { return !root || root.val === root.left!.val + root.right!.val; }LeetCodeRoot Equals Sum of Childrenhttps://leetcode.com/problems/root-equals-sum-of-children