Search
⌘K
Get Premium
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.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.