Python求最大树深 python def maxDepth(root): if not root: return 0 return max(maxDepth(root.left), maxDepth(root.right)) + 1 80 月前 / 0 条评论 / 2933 阅读 / 0 赞