1315. Sum of Nodes with Even-Valued Grandparent
Last updated
Last updated
**Input:** root = [6,7,8,2,7,1,3,9,null,1,4,null,null,null,5]
**Output:** 18
**Explanation:** The red nodes are the nodes with even-value grandparent while the blue nodes are the even-value grandparents.**Input:** root = [1]
**Output:** 0