由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - Amazon(6)
相关主题
Amazon Interview Question一个google面试题
问个算法题7在线紧急求助一道system design面试题,面经内附
Amazon onsite interviewOne Phone Interview Problem
求讨论一道SYSTEM DESIGN题,CC10.1universial hashing 一问
问一道老题how to query in the universal hash table?
曾经fail掉的一个电话面试以及题目电面不好,求bless。这题怎么答?
MS intern 电面被拒,附上面试过程amazon intern一共几面, 加面经
微软onsite如何秒杀99%的海量数据处理面试题
相关话题的讨论汇总
话题: hash话题: amazon话题: frequent话题: websites话题: most
进入JobHunting版参与讨论
1 (共1页)
b********e
发帖数: 693
1
Most frequent path of 3 websites.
Given a log file, which contains a series of websites, which the user has vi
sited, find the most frequent path of 3 websites.
e.g: If this is a log file
A B C D E
A C D B E
C D E B A
A C D E B
C D E A B
Clearly, C D E in the most frequent website?
First I said graph, then I said hash table. Hash every 3 consecutive web sit
es and increment in Hash Table. Parse through HT and keep a variable which s
tores the max value you get the answer.
r**u
发帖数: 1567
2
CDE必须连续么?

vi

【在 b********e 的大作中提到】
: Most frequent path of 3 websites.
: Given a log file, which contains a series of websites, which the user has vi
: sited, find the most frequent path of 3 websites.
: e.g: If this is a log file
: A B C D E
: A C D B E
: C D E B A
: A C D E B
: C D E A B
: Clearly, C D E in the most frequent website?

1 (共1页)
进入JobHunting版参与讨论
相关主题
如何秒杀99%的海量数据处理面试题问一道老题
HashTable相关的面试题曾经fail掉的一个电话面试以及题目
不改变排序的hash算法?MS intern 电面被拒,附上面试过程
用hash value来distribute to diff machine的困惑微软onsite
Amazon Interview Question一个google面试题
问个算法题7在线紧急求助一道system design面试题,面经内附
Amazon onsite interviewOne Phone Interview Problem
求讨论一道SYSTEM DESIGN题,CC10.1universial hashing 一问
相关话题的讨论汇总
话题: hash话题: amazon话题: frequent话题: websites话题: most