一、题目内容
二、题解
解法1:
思路
代码
public class Solution {/**** @param root TreeNode类* @return int整型*/public int maxDepth (TreeNode root) {// write code hereif(root == null){return 0;}return Math.max(maxDepth(root.left), maxDepth(root.right)) + 1;}}
