public static int test4(BinTreeNode node) {
if (node == null) {
return 0;
} else {
return 1+Math.max(test4(node.left), test4(node.right));
}
}
public static int test4(BinTreeNode node) {
if (node == null) {
return 0;
} else {
return 1+Math.max(test4(node.left), test4(node.right));
}
}
本文标题:Tree:二叉树深度
本文链接:https://www.haomeiwen.com/subject/phdwrttx.html
网友评论