由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 请问驿道面试题
相关主题
问一个老的google面试题几道微软面试题
Find shortest substring that is only occurring once. in Given String(Medallia面试题)发Google面经,为明天MS攒rp
问一个字符串面试问题G题求解迷津
MS面试题请教一个design问题
新鲜出炉的Yelp面经[已更新]报个微软的Offer
这个题目怎么做C++ 程序求助
请教一道题目edit distance vs. word ladder
问下careercup上的这一题Palindrome Partitioning II 的DP做法?
相关话题的讨论汇总
话题: characters话题: given话题: also话题: shortest话题: substring
进入JobHunting版参与讨论
1 (共1页)
d***8
发帖数: 1552
1
A long string text, given some characters, find the shortest
substring covering all given characters.
h***n
发帖数: 276
2
经典的min cover window O(n),你在版上找找,应该讨论过的
基本思想:
先通过scan找到第一个窗口包含所有感兴趣的字符,随后的scan就修改这个窗口如果后
面又碰到感兴趣的字符,在这个过程中book-keeping见到的最小窗口的值,如果还要纪
录窗口的位置,多加两个变量就好了

【在 d***8 的大作中提到】
: A long string text, given some characters, find the shortest
: substring covering all given characters.

P********l
发帖数: 452
3
Check:
http://www.sureinterview.com/shwqst/101005
Also try a search there to see if you are lucky. :)
P********l
发帖数: 452
4
also think about the behavior question on the banner of the page, which is
more important in some cases. (show hint gives the answer). The Q&A comes
from one excellent post here. //salute.
j********x
发帖数: 2330
5
Sort of difficult to begin, but really simple questions.

【在 d***8 的大作中提到】
: A long string text, given some characters, find the shortest
: substring covering all given characters.

1 (共1页)
进入JobHunting版参与讨论
相关主题
Palindrome Partitioning II 的DP做法?新鲜出炉的Yelp面经[已更新]
Zenefits面经(已挂)这个题目怎么做
another google interview question:请教一道题目
an interview question问下careercup上的这一题
问一个老的google面试题几道微软面试题
Find shortest substring that is only occurring once. in Given String(Medallia面试题)发Google面经,为明天MS攒rp
问一个字符串面试问题G题求解迷津
MS面试题请教一个design问题
相关话题的讨论汇总
话题: characters话题: given话题: also话题: shortest话题: substring