/** * Returns the maximum depth" of the tree -- the number of * nodes along the longest path from the root node * down to the farthest leaf node.*/ public int maxDepth() { return maxDepth(root); }
/** * Returns the maximum depth" of the tree -- the number of * nodes along the longest path from the root node * down to the farthest leaf node.*/ public int maxDepth() { return maxDepth(root); }