LeetCode 315 | Sum of Nodes with Even-Valued Grandparent | Solution Explained (Java + Whiteboard)

Описание к видео LeetCode 315 | Sum of Nodes with Even-Valued Grandparent | Solution Explained (Java + Whiteboard)

Given a binary tree, return the sum of values of nodes with even-valued grandparent. (A grandparent of a node is the parent of its parent, if it exists.)

If there are no nodes with an even-valued grandparent, return 0.

Running Time: O(N)
Space Complexity: O(N)

Always be pluggin:
Slack Channel: https://join.slack.com/t/xavierelonle...
Github: https://github.com/xavierelon1
Facebook:   / xavier.hollingsworth.3  
Instagram:   / xavierelon  
LinkedIn:   / xavier-hollingsworth-524144127  
Twitter:   / elon_xavier  

Комментарии

Информация по комментариям в разработке