由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - share两道题目。
相关主题
求解一道题有两道题不知怎答, 请大家帮忙
Bloomerg 还没放弃我。 电话二面经过。Given a series of words written using a scrambled alphabet, figure out what order the letters of the
another google interview question:google phone interview
interview Qs collection问个anagram的题目啊
有人整理过FB的面试题么关于anagram的老题?
问两道微软题问个anagram的问题
发一个fb面经一道G家店面题
发面经 回报本版请问我写的这个代码哪可以改进一下
相关话题的讨论汇总
话题: anagram话题: derivative话题: word话题: tack话题: given
进入JobHunting版参与讨论
1 (共1页)
c***n
发帖数: 588
1
1. Given an array of words find what is and how long is the length of the
longest common substring between two words in the array. Give best solution
and provide time complexity analysis.
2. Given a list of words output the largest anagram derivative contained in
that set. The definition of an anagram derivative is: Consider the word 'cat
' as a basis, then the word 'tack' is said to an anagram derivative of 'cat'
since it can be re-arranged and appended with an alphabet to form the word
'tack'. This process can be performed repeatedly, so that the word 'tacky'
is an anagram derivative of 'tack'.
Now given a list of words output the largest anagram derivative in that list.
题目1似乎可以用generalized suffix tree, 但是具体time compelxity不好给出来
题目2似乎从最长word开始往下减,看看看去一个字符后是否有anagram存在
1 (共1页)
进入JobHunting版参与讨论
相关主题
请问我写的这个代码哪可以改进一下有人整理过FB的面试题么
eBay SDET 电面面经问两道微软题
帕兰提尔 电面面经发一个fb面经
google面经发面经 回报本版
求解一道题有两道题不知怎答, 请大家帮忙
Bloomerg 还没放弃我。 电话二面经过。Given a series of words written using a scrambled alphabet, figure out what order the letters of the
another google interview question:google phone interview
interview Qs collection问个anagram的题目啊
相关话题的讨论汇总
话题: anagram话题: derivative话题: word话题: tack话题: given