摘要: 104.求二叉树的最大深度 class Solution: def maxDepth(self, root: TreeNode) -> int: if root == None: return 0 else: leftdepth = self.maxDepth(root.left) rightdep 阅读全文
posted @ 2020-04-12 10:10 yawenw 阅读(147) 评论(0) 推荐(0) 编辑