由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - G onsite题求讨论
相关主题
问2道面试题问一个面试问题
问个google老题的最佳解法做一下common prefix in sorted string arrays
问一个Pinterest的题目话说今天面了一老印
还真从来没见过考KMP之类string matching算法的那个phone number的group的题,大家看看我写的行不行(还有string class那个s[0]==s[1]==s[2] 不work好像)
Longest common string问题问道题,找到电话按键能组成的所有的词
finds all repeated substrings in the string --- YAHOO interview question搞了小半个月,leetcode还有20题
Ask a google interview question(3)今天才整明白Permutation的最优解!?
贡献一个朋友在Google的面题一枚。谁能帮我写写这道题? print all permutations of a string
相关话题的讨论汇总
话题: strings话题: string话题: list话题: text话题: given
进入JobHunting版参与讨论
1 (共1页)
t*********y
发帖数: 151
1
given a text file and a list of string, find the max length of strings that
combined from the given list
of string in the text file. Each character in the given list of string can
be used only once.
ANS: A list contains all possible prefix strings up to x. 
S********s
发帖数: 29
2
能举个例子么?
k******z
发帖数: 4
3
对的,没有例子这个描述很模糊啊
h**********c
发帖数: 4120
4
It looks like it is asking a word without repeating characters.
Opinion,
If it is chinese/hindi text, could be quite troublesome.
h***s
发帖数: 45
5
- The strings should be concatenated sequentially or mixing is allowed? -
- What does "up to x" mean?
"ANS: A list contains all possible prefix strings up to x. "
楼主能给个例子吗?
t*********y
发帖数: 151
6
我的理解是给一个dictionary, 一个string,找出dict 里能全部用string里的letter
表示的所有最长的词

【在 h***s 的大作中提到】
: - The strings should be concatenated sequentially or mixing is allowed? -
: - What does "up to x" mean?
: "ANS: A list contains all possible prefix strings up to x. "
: 楼主能给个例子吗?

i*****o
发帖数: 105
7
sounds like knapsack variants:
text file is the capacity of letters
each string in the given list consumes some letter
there is no limit on the number of single string
it should use letter set to account capacity and consumption in dp
struct letter_set {
int l[26]; /* count of distinct letters */
} text_file, strings[N];
max{X(text_file - strings[i]) + 1|i=0...N-1}
1 (共1页)
进入JobHunting版参与讨论
相关主题
谁能帮我写写这道题? print all permutations of a stringLongest common string问题
storm8 online test 讨论finds all repeated substrings in the string --- YAHOO interview question
湾区公司店面Ask a google interview question(3)
Groupon新鲜面经贡献一个朋友在Google的面题一枚。
问2道面试题问一个面试问题
问个google老题的最佳解法做一下common prefix in sorted string arrays
问一个Pinterest的题目话说今天面了一老印
还真从来没见过考KMP之类string matching算法的那个phone number的group的题,大家看看我写的行不行(还有string class那个s[0]==s[1]==s[2] 不work好像)
相关话题的讨论汇总
话题: strings话题: string话题: list话题: text话题: given