首页 > 其他 > 详细

[CareerCup] 4.1 Balanced Binary Tree 平衡二叉树

时间:2015-07-29 13:46:40      阅读:201      评论: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.

 

LeetCode上的原题,请参见我之前的博客Balanced Binary Tree 平衡二叉树

 

[CareerCup] 4.1 Balanced Binary Tree 平衡二叉树

原文:http://www.cnblogs.com/grandyang/p/4685660.html

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