由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 这道题什么意识?
相关主题
这道题到底啥意识?Lowest common ancestor of two nodes of Binary Tree
问道题,binary tree里有一个有indegree 2问一道amazon面试题
问一个很简单的suffix tree问题。请指点。L家这题咋搞,巨变态
这道FB题怎么做?请教一个二叉树镜像问题
一道binary tree的面试题求解这道题怎么做?
construct a binary tree from in-order and level-order travfind treenode with two indegrees
amazon一道面试题面试遇到见过的题, 怎么办??
Print a binary tree in level order but starting from leaf node up to rootcc150上面binary tree找所有sum==target的path,不一定从root出发
相关话题的讨论汇总
话题: tree话题: node话题: elements话题: either话题: each
进入JobHunting版参与讨论
1 (共1页)
p***d
发帖数: 201
1
“Was asked a very interesting tree problem.Given a tree and a number N,
construct another tree such that each node of the tree has either 0 or N
elements,except for one node which has between 0 to N elements.Only other
constraint is that ancestry is preserved in the new tree. ”
看面经,遇到这个提,我不太懂什么叫each node of the tree has either 0 or N
elements?大家有什么看法?
n******n
发帖数: 12088
2
leaf或者n个子树,根除外

【在 p***d 的大作中提到】
: “Was asked a very interesting tree problem.Given a tree and a number N,
: construct another tree such that each node of the tree has either 0 or N
: elements,except for one node which has between 0 to N elements.Only other
: constraint is that ancestry is preserved in the new tree. ”
: 看面经,遇到这个提,我不太懂什么叫each node of the tree has either 0 or N
: elements?大家有什么看法?

p***d
发帖数: 201
3
你是说构建一个树,每一个node都有0 或N leaf? 说不过去呀!

【在 n******n 的大作中提到】
: leaf或者n个子树,根除外
p***d
发帖数: 201
4
“Was asked a very interesting tree problem.Given a tree and a number N,
construct another tree such that each node of the tree has either 0 or N
elements,except for one node which has between 0 to N elements.Only other
constraint is that ancestry is preserved in the new tree. ”
看面经,遇到这个提,我不太懂什么叫each node of the tree has either 0 or N
elements?大家有什么看法?
n******n
发帖数: 12088
5
leaf或者n个子树,根除外

【在 p***d 的大作中提到】
: “Was asked a very interesting tree problem.Given a tree and a number N,
: construct another tree such that each node of the tree has either 0 or N
: elements,except for one node which has between 0 to N elements.Only other
: constraint is that ancestry is preserved in the new tree. ”
: 看面经,遇到这个提,我不太懂什么叫each node of the tree has either 0 or N
: elements?大家有什么看法?

p***d
发帖数: 201
6
你是说构建一个树,每一个node都有0 或N leaf? 说不过去呀!

【在 n******n 的大作中提到】
: leaf或者n个子树,根除外
b********r
发帖数: 620
7
kind of like complete tree, only the last non-leaf node could be exception.

【在 p***d 的大作中提到】
: 你是说构建一个树,每一个node都有0 或N leaf? 说不过去呀!
1 (共1页)
进入JobHunting版参与讨论
相关主题
cc150上面binary tree找所有sum==target的path,不一定从root出发一道binary tree的面试题求解
这道题是选A 吗?construct a binary tree from in-order and level-order trav
Find Peak Element这道题要考啥?amazon一道面试题
看个GOOG的题目Print a binary tree in level order but starting from leaf node up to root
这道题到底啥意识?Lowest common ancestor of two nodes of Binary Tree
问道题,binary tree里有一个有indegree 2问一道amazon面试题
问一个很简单的suffix tree问题。请指点。L家这题咋搞,巨变态
这道FB题怎么做?请教一个二叉树镜像问题
相关话题的讨论汇总
话题: tree话题: node话题: elements话题: either话题: each