Leetcode 257. Binary Tree Paths

题目描述:返回二叉树从根到叶子节点的路径。(是无左子树且无右子树) 题目链接:Leetcode 257. Binary Tree Paths 递归添加。 代码如下 class Solution: def binaryTreePaths(self, root): """ :type root: TreeNode :rtype: List[str] """ an
相关文章
相关标签/搜索