由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - Find shortest among two nodes in binary tree
相关主题
amazon一道面试题How many different binary trees are possible with n nodes ?
问道题,binary tree里有一个有indegree 2判断 bst 疑问
Lowest common ancestor of two nodes of Binary Treenon recursive binary tree traversal in O(n) time and O(1) space
求教一道老题一道大公司诡异的complete binary tree max sum of 2 nodes 题
这个Binary Tree的题来看看问个binary tree node path的概念问题
讨论个Binary search tree的题目问个amazon面试题
请问一个简单的面试题full or complete binary tree的问题
amazon first phone interview, rejectedgenerate all distinct full binary trees with n leaves
相关话题的讨论汇总
话题: shortest话题: find话题: nodes
进入JobHunting版参与讨论
1 (共1页)
h*********2
发帖数: 192
1
但是对整个树找shortest path怎么做呢?好像要用dp,大家给个思路吧~~
谢谢!
r*******n
发帖数: 3020
2
two nodes 路径不就一条吗,还有shortest 之说?
tree 是没有环的图

【在 h*********2 的大作中提到】
: 但是对整个树找shortest path怎么做呢?好像要用dp,大家给个思路吧~~
: 谢谢!

h*********2
发帖数: 192
3
完全不记得这题是什么了……
貌似是有权树中找最大(最小)权值路径?

【在 r*******n 的大作中提到】
: two nodes 路径不就一条吗,还有shortest 之说?
: tree 是没有环的图

1 (共1页)
进入JobHunting版参与讨论
相关主题
generate all distinct full binary trees with n leaves这个Binary Tree的题来看看
弱问怎么判断两个binary tree相同?讨论个Binary search tree的题目
recover binary search tree 常数空间请问一个简单的面试题
binary tree, sum of 2 nodes == given numberamazon first phone interview, rejected
amazon一道面试题How many different binary trees are possible with n nodes ?
问道题,binary tree里有一个有indegree 2判断 bst 疑问
Lowest common ancestor of two nodes of Binary Treenon recursive binary tree traversal in O(n) time and O(1) space
求教一道老题一道大公司诡异的complete binary tree max sum of 2 nodes 题
相关话题的讨论汇总
话题: shortest话题: find话题: nodes