码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-07-29 13:46:49      阅读:99      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!