404. 左叶子之和 https://leetcode.cn/problems/sum-of-left-leaves
404. Sum of Left Leaves https://leetcode.com/problems/sum-of-left-leaves
623. 在二叉树中增加一行 https://leetcode.cn/problems/add-one-row-to-tree
623. Add One Row to Tree https://leetcode.com/problems/add-one-row-to-tree
971. 翻转二叉树以匹配先序遍历 https://leetcode.cn/problems/flip-binary-tree-to-match-preorder-traversal
971. Flip Binary Tree To Match Preorder Traversal https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal
987. 二叉树的垂序遍历 https://leetcode.cn/problems/vertical-order-traversal-of-a-binary-tree
987. Vertical Order Traversal of a Binary Tree https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree
993. 二叉树的堂兄弟节点 https://leetcode.cn/problems/cousins-in-binary-tree
993. Cousins in Binary Tree https://leetcode.com/problems/cousins-in-binary-tree
1315. 祖父节点值为偶数的节点和 https://leetcode.cn/problems/sum-of-nodes-with-even-valued-grandparent
1315. Sum of Nodes with Even-Valued Grandparent https://leetcode.com/problems/sum-of-nodes-with-even-valued-grandparent
1448. 统计二叉树中好节点的数目 https://leetcode.cn/problems/count-good-nodes-in-binary-tree
1448. Count Good Nodes in Binary Tree https://leetcode.com/problems/count-good-nodes-in-binary-tree
如果让你在二叉树中的某些节点上做文章,一般来说也可以直接用遍历的思维模式。
loading...