二叉树: 二叉树的最大深度 全凭一口仙气儿活着 2022-07-08 31 阅读1分钟 function maxDepth( root ) { if(!root) return 0; return Math.max(maxDepth(root.left),maxDepth(root.right)) + 1 }