首页 > 其他 > 详细

Careercup | Chapter 4

时间:2014-06-12 08:08:20      阅读:380      评论:0      收藏:0      [点我收藏+]

二叉查换树,左孩子小于等于根,右孩子大于根。

完全二叉树,叶子都在最后一层,所有结点(除了叶子)都有两个孩子。

平衡二叉树,左右子树的高度在一定范围内。

4.1 Implement a function to check if a binary tree is balanced. For the purposes of this question, a balanced tree is defined to be a tree such that the heights of the two subtrees of any node never differ by more than one.

4.2 

Careercup | Chapter 4,布布扣,bubuko.com

Careercup | Chapter 4

原文:http://www.cnblogs.com/linyx/p/3782607.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!