具有n个节点的完全二叉树的深度为______。

9 查阅

具有n个节点的完全二叉树的深度为______。

参考答案:

[log2n]+1根据二叉树性质5:具有n个节点的完全二叉树的深度为[log2n]+1,其中[log2n]表示log2n的整数部分。