由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 一道老题
相关主题
再问一道老题google 电话面试题
问一个word ladder的题目问一道字符串相关的题目。
edit distance vs. word ladder一道google interview的题目
LeetCode: Word Ladder[算法] word ladder problem
问一个Google老题请教一道题目
狗狗面试官, 怎么都在抄代码。Word Ladder几个test case 没看明白
问一个老题,请帮忙解答 多谢了网上看到一道题 求O(n)的解法
那个 google hint words 的老题一道题Find all words from a dictionary that are Y edit distance away.
相关话题的讨论汇总
话题: word话题: here话题: pan话题: met话题: meaningful
进入JobHunting版参与讨论
1 (共1页)
t******e
发帖数: 1293
1
Carefully see the following transition from one word to other-
PAN -> PEN -> MEN -> MET
Here each word is achieved by changing any one character in previous word.
Now you are given with a Source word (PAN here) and a Destination word (MET
here) and need to find out shortest transition chain following above rule
using only meaningful words. Dictionary containing thousands of meaningful
words is provided to you.
B*****t
发帖数: 335
2
所有的SSSP算法可以行吧。
h**k
发帖数: 3368
3
把字典变成图,每个单词看作一个vertice,可以互相转变的两个词之间存在一个edge
。然后问题变成找两点之间的最小路径。
t******e
发帖数: 1293
4
single source shortest path algorithm?
问题在于怎么构造出这个图来?如何快速算出每两个单词的edit distance?
这个时间复杂度很大

【在 B*****t 的大作中提到】
: 所有的SSSP算法可以行吧。
B*****t
发帖数: 335
5
you are right.
use DP to calculate distance

【在 t******e 的大作中提到】
: single source shortest path algorithm?
: 问题在于怎么构造出这个图来?如何快速算出每两个单词的edit distance?
: 这个时间复杂度很大

1 (共1页)
进入JobHunting版参与讨论
相关主题
一道题Find all words from a dictionary that are Y edit distance away.问一个Google老题
airbnb就这一道题目么?狗狗面试官, 怎么都在抄代码。
amazon 面筋题怎么做?问一个老题,请帮忙解答 多谢了
word search follow up的问题那个 google hint words 的老题
再问一道老题google 电话面试题
问一个word ladder的题目问一道字符串相关的题目。
edit distance vs. word ladder一道google interview的题目
LeetCode: Word Ladder[算法] word ladder problem
相关话题的讨论汇总
话题: word话题: here话题: pan话题: met话题: meaningful