完全二叉树结点数,叶子结点数

设结点数为n(总是为奇数),叶子结点数为m,则

m = ( n + 1 ) / 2

n = m * 2 - 1

猜你喜欢

转载自blog.csdn.net/wojiuguowei/article/details/84058999