public int TreeDepth(TreeNode pRoot) { if(pRoot == null) return 0; return Math.max(TreeDepth(pRoot.left),TreeDepth(pRoot.right))+1; }
public int TreeDepth(TreeNode pRoot) { if(pRoot == null) return 0; return Math.max(TreeDepth(pRoot.left),TreeDepth(pRoot.right))+1; }