摘要: 解法一:从上到下计算(后序遍历) class Solution { public int maxDepth(TreeNode root) { if (root == null) { return 0; } int left = maxDepth(root.left); int right = max 阅读全文
posted @ 2021-09-14 19:47 微笑带你去 阅读(32) 评论(0) 推荐(0)