标签:mat ams node class clu http title scn ref
题目描述:
解题思路:
代码:
public int MaxDepth(TreeNode root)
{
if (root == null) return 0;
return Mathf.Max(MaxDepth(root.left) + 1, MaxDepth(root.right) + 1);
}
来源:http://www.1994july.club/
标签:mat ams node class clu http title scn ref
原文地址:https://www.cnblogs.com/1994july/p/12148847.html