由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - Longest word question (CS)
相关主题
Find the longest word given a collection面到reverse words in string
longest word made of other words求G加一题的线性解法
(CS) 求单词合成的那个题是咋作的来着?问个算法题3
谁能给个CC150 18.7的C或者C++答案大家看看我这是不是被FB拒了
Leetcode上stack相关的题目相比CC150题怎么那么少?Longest Valid ParenthesesGoogle onsite问题
find longest word made of other words这道题什么意思啊找工作真是煎熬
问一道google题来道难一点的题
An interview question问一个老题 longest palindrome
相关话题的讨论汇总
话题: longest话题: word话题: cs话题: collection话题: find
进入JobHunting版参与讨论
1 (共1页)
l********r
发帖数: 140
1
I recall saw it somewhere (maybe in CC150), but can't find it:
Given a collection of word, find the longest word that is made up from the
words in this collection.
Any idea?
l*n
发帖数: 529
2
https://github.com/rockcdr/Find-Longest-Word-Made-of-Other-Words/blob/master
/findLongest/main_rock.cpp
看起来是搞个trie,然后从最长开始挨个试,直到碰见能完全切开的。

【在 l********r 的大作中提到】
: I recall saw it somewhere (maybe in CC150), but can't find it:
: Given a collection of word, find the longest word that is made up from the
: words in this collection.
: Any idea?

x*****0
发帖数: 452
3
m
1 (共1页)
进入JobHunting版参与讨论
相关主题
问一个老题 longest palindromeLeetcode上stack相关的题目相比CC150题怎么那么少?Longest Valid Parentheses
LCA的问题find longest word made of other words这道题什么意思啊
Facebook interview 面经问一道google题
Longest common string问题An interview question
Find the longest word given a collection面到reverse words in string
longest word made of other words求G加一题的线性解法
(CS) 求单词合成的那个题是咋作的来着?问个算法题3
谁能给个CC150 18.7的C或者C++答案大家看看我这是不是被FB拒了
相关话题的讨论汇总
话题: longest话题: word话题: cs话题: collection话题: find