由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 问道老题
相关主题
Is this a DP problem?问一个老题 longest palindrome
一道微软面试题一道老题
问个算法题3问一个老题,请帮忙解答 多谢了
free back test tool in python - for quant algos (转载)问到经典老题
求教一道老题确认一下RMQ/LCA那道老题
一道老题但是以前的解好象都不对求教一道老题
一道老题,突然想不起来怎么做了一道老题
问一道老题careercup书上一个老题
相关话题的讨论汇总
话题: words话题: given话题: document话题: algo话题: rithm
进入JobHunting版参与讨论
1 (共1页)
P*******b
发帖数: 1001
1
Given a document and a query of K words, how do u find the smallest window t
hat covers all the words at least once in that document? (given you know the
inverted lists of all K words, that is, for each word, you have a list of a
ll its occurrrences). This one is really hard. Could someone propose an algo
rithm in O(n)?
M********5
发帖数: 715
2
这个题确实挺难的,不过leetcode上有个题目跟这个是差不多的,有个人propose的算
法是线性的。。。
g******z
发帖数: 893
3
跟leetcode上的minimum window substring差不多的做法吧?

t
the
a
algo

【在 P*******b 的大作中提到】
: Given a document and a query of K words, how do u find the smallest window t
: hat covers all the words at least once in that document? (given you know the
: inverted lists of all K words, that is, for each word, you have a list of a
: ll its occurrrences). This one is really hard. Could someone propose an algo
: rithm in O(n)?

f*******t
发帖数: 7549
4
yes

【在 g******z 的大作中提到】
: 跟leetcode上的minimum window substring差不多的做法吧?
:
: t
: the
: a
: algo

1 (共1页)
进入JobHunting版参与讨论
相关主题
careercup书上一个老题求教一道老题
CareerCup 上一道老题一道老题但是以前的解好象都不对
问一个老题一道老题,突然想不起来怎么做了
问个bloomberg的老题问一道老题
Is this a DP problem?问一个老题 longest palindrome
一道微软面试题一道老题
问个算法题3问一个老题,请帮忙解答 多谢了
free back test tool in python - for quant algos (转载)问到经典老题
相关话题的讨论汇总
话题: words话题: given话题: document话题: algo话题: rithm