LeetCode做题总结:二叉树

public class Solution15 { public int maxDepth(TreeNode root) { if(root==null) return 0; else return 1+Math.max(maxDepth(root.left),maxDepth(root.right)); } public static void main(String
相关文章
相关标签/搜索