257. 二叉树的所有路径 https://leetcode.cn/problems/binary-tree-paths
257. Binary Tree Paths https://leetcode.com/problems/binary-tree-paths
129. 求根节点到叶节点数字之和 https://leetcode.cn/problems/sum-root-to-leaf-numbers
129. Sum Root to Leaf Numbers https://leetcode.com/problems/sum-root-to-leaf-numbers
199. 二叉树的右视图 https://leetcode.cn/problems/binary-tree-right-side-view
199. Binary Tree Right Side View https://leetcode.com/problems/binary-tree-right-side-view
298. 二叉树最长连续序列 https://leetcode.cn/problems/binary-tree-longest-consecutive-sequence
298. Binary Tree Longest Consecutive Sequence https://leetcode.com/problems/binary-tree-longest-consecutive-sequence
988. 从叶结点开始的最小字符串 https://leetcode.cn/problems/smallest-string-starting-from-leaf
988. Smallest String Starting From Leaf https://leetcode.com/problems/smallest-string-starting-from-leaf
1022. 从根到叶的二进制数之和 https://leetcode.cn/problems/sum-of-root-to-leaf-binary-numbers
1022. Sum of Root To Leaf Binary Numbers https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers
1457. 二叉树中的伪回文路径 https://leetcode.cn/problems/pseudo-palindromic-paths-in-a-binary-tree
1457. Pseudo-Palindromic Paths in a Binary Tree https://leetcode.com/problems/pseudo-palindromic-paths-in-a-binary-tree
1740. 找到二叉树中的距离 https://leetcode.cn/problems/find-distance-in-a-binary-tree
1740. Find Distance in a Binary Tree https://leetcode.com/problems/find-distance-in-a-binary-tree
1257. 最小公共区域 https://leetcode.cn/problems/smallest-common-region
1257. Smallest Common Region https://leetcode.com/problems/smallest-common-region
Prerequisites
Before reading this article, you should first learn:
Generally speaking, if you are asked to work on the "branches" of a binary tree, it is natural to use a traversal mindset to solve the problem.