swaaaay
swaaaay
全部文章
题解
未归档(36)
归档
标签
去牛客网
登录
/
注册
swaaaay的博客
全部文章
/ 题解
(共2篇)
题解 | #二叉树中和为某一值的路径(一)#
来自专栏
python递归 class Solution: def hasPathSum(self , root: TreeNode, sum: int) -> bool: # write code here if not root: return False ...
Python3
二叉树
递归
2021-11-08
0
349
题解 | #把二叉树打印成多行#
来自专栏
二叉树好难。。。 class Solution: # 返回二维列表[[1,2],[4,5]] def Print(self, pRoot): # write code here if not pRoot:return [] result...
Python3
二叉树
2021-11-08
0
418