Search
⌘K

Leetcode 1315. Sum of Nodes with Even-Valued Grandparent

Traverse the binary tree and return the sum of node values whose grandparent exists and is even-valued. This requires a tree traversal (DFS/BFS) while checking grandparent parity; n ≤ 10^4, node values 1–100.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.