1991
高级农民
您需要 登录 才可以下载或查看附件。没有帐号?注册账号
题目:Given a binary tree, determine if it is height-balanced.
For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never differ by more than 1.
错误是:stack overflow. 在一个特大的testcase.
求帮忙看看哪里写的不对,然后怎么改。
谢谢大家~
isBalanced.png (80.46 KB, 下载次数: 0)
下载附件 保存到相册
2016-8-16 12:44 上传
stack overflow
isBalanced.zip
2016-8-16 12:46 上传
点击文件名下载附件
554 Bytes, 下载次数: 2, 下载积分: 大米 -1 颗
使用道具 举报
218
中级农民
本版积分规则 发表回复 回帖后跳转到最后一页