由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 关于 leetcode上的balanced binary tree 的问题。
相关主题
LeetCode balanced Binary tree 请教讨论一道LeetCode题:Binary Tree Maximum Path Sum
问一个leetcode上面binary tree的题目Leetcode bst max path-----is this solution correct?
这个Binary Tree的题来看看感觉leetcode的OJ有点太偏重DP了
若问:如何验证binary tree是否是binary search tree?LeetCode 更新
Binary Tree Maximum Path Sum面试题总结(7) - Tree
serialize n-ary tree 一问leetcode中tree的表示方法
请教一个balanced tree的问题Leetcode上Binary Tree Level Order Traversal II的疑问
求LeetCode Binary Tree Level Order Traversal II解法[leetcode] Maximum Depth of Binary Tree
相关话题的讨论汇总
话题: balanced话题: 为什么话题: judge话题: online话题: binary
进入JobHunting版参与讨论
1 (共1页)
e******o
发帖数: 757
1
为什么online judge里面的
{1 2 2 3 3 3 3 4 4 4 4 4 4 # # 5 5}是balanced.
难道不是
1
2 2
3 3 3 3
4 4 4 4 4 4 # #
5 5
这个为什么是balanced的?
谢谢。
p******9
发帖数: 47
2
balance tree定义是左右子树高度差小于等于一,高度是指左右子树高度大的那个加1
e******o
发帖数: 757
3
thanks.

1

【在 p******9 的大作中提到】
: balance tree定义是左右子树高度差小于等于一,高度是指左右子树高度大的那个加1
1 (共1页)
进入JobHunting版参与讨论
相关主题
[leetcode] Maximum Depth of Binary TreeBinary Tree Maximum Path Sum
help: leetcode "Recover Binary Search Tree" -- 附代码serialize n-ary tree 一问
[leetcode] Minimum Depth of Binary Tree 我的这个答案说wrong answer,但是我在本地跑就是对的.请教一个balanced tree的问题
这个题做的对吗?求LeetCode Binary Tree Level Order Traversal II解法
LeetCode balanced Binary tree 请教讨论一道LeetCode题:Binary Tree Maximum Path Sum
问一个leetcode上面binary tree的题目Leetcode bst max path-----is this solution correct?
这个Binary Tree的题来看看感觉leetcode的OJ有点太偏重DP了
若问:如何验证binary tree是否是binary search tree?LeetCode 更新
相关话题的讨论汇总
话题: balanced话题: 为什么话题: judge话题: online话题: binary