登录
|
注册
公司
标签
文章
搜索
树
热门公司
阿里巴巴
腾讯
微软
网易
迅雷
人人网
热门职位
研发工程师
C语言工程师
Go
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
1
0
2816
已知某二叉树的前序为(1-2-3-4-5-6-7-8-9),中序为(2-3-1-6-7-8-5-9-4),则它的后续为? 3-2-8-7-6-9-5-4-1 1-2-6-5-4-3-8-7-9 5-4-2-1-3-7-6-9-8 2-3-5-4-6-7-9-1-8 3-2-1-4-5-9-8-6-7 3-2-1-8-7-6-9-5-4 ...
阅读题目
2015
阿里巴巴
树
单选题
经典指数
1
0
2664
A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nodes with keys less than the node's key. The right subtree of a node contains only nodes with keys greater than or equal to the node's key. Both the left and right subtrees must also be binary search trees. If we swap the left and right subtrees of every node, then the resulting tree is called the Mirror Image of a BST. Now given a sequence of i ...
阅读题目
树
递归
面试题
经典指数
1
0
977
Given n, generate all structurally unique BST's (binary search trees) that store values 1...n. For example, Given n = 3, your program should return all 5 unique BST's shown below. 1 3 3 2 1 \ / / / \ \ 3 2 1 1 3 2 / / \ \ 2 1 2 3 confused what"{1,#,2,3}"means? > read more on how binary tree is serialized on OJ. OJ's Binary Tree Serialization: The ...
阅读题目
树
面试题
经典指数
1
0
1901
下面的哪个序列可能是二叉搜索树中序遍历的结果? 73 8 2 9 4 11 2 3 4 7 8 9 11 11 2 9 3 8 4 7 以上均可 ...
阅读题目
阿里巴巴
树
复杂度
单选题
经典指数
1
0
4247
对任何一棵二叉树T,如果其终端结点的个数为n0,度为2的结点个数为n2,则() n0=n2+1 没有规律 n0=n2 n0=n2-1 ...
阅读题目
C语言工程师
树
单选题
经典指数
1
0
1341
Given n, how many structurally unique BST's (binary search trees) that store values 1...n? For example, Given n = 3, there are a total of 5 unique BST's. 1 3 3 2 1 \ / / / \ \ 3 2 1 1 3 2 / / \ \ 2 1 2 3 ...
阅读题目
树
面试题
经典指数
1
0
1280
反转二叉树,即交换所有结点的左右子树,但不能使用递归方法。 二叉树结构如下: TreeNode{ TreeNode left,right; //左右子树 DataType data; //数据 } ...
阅读题目
树
递归
问答题
经典指数
1
0
2019
二叉树以后序遍历序列与前序遍历序列反映同样的信息(它们反映的信息不独立)() 对 错 ...
阅读题目
树
单选题
经典指数
1
0
2221
一棵二叉树有10个度为1的结点,7个度为2的结点,则该二叉树共有个多少个结点? 24 17 25 31 ...
阅读题目
百度
树
单选题
经典指数
1
0
1913
已知一棵完全二叉树中共有626个结点,叶结点的个数应为() 311 312 313 314 其他 ...
阅读题目
树
单选题
经典指数
<<
<
1
2
3
4
5
6
>
>>
368
题目数
1
贡献者
370
答案数
扫描后移动端查看
我也分享一个题目
相关标签
阿里巴巴
研发工程师
2015
腾讯
2016
查找
链表
C语言工程师
图
栈
同类标签
排序
数组
链表
字符串
复杂度
查找
栈
图
哈希
队列
微信公众号
欢迎加入,一起群聊
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录