Free written solutionSum of Nodes with Even-Valued Grandparent (LeetCode 1315): Solution and Explanation
Add up the values of all nodes whose grandparent, the node two levels above, holds an even value.
Read the intuition, approach, code and complexity →