由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 国内找北美社招职位面试总结
相关主题
赞被AMAZON速据,少量面经Amazon算驴还是马?
系统设计题怎么准备亚麻现在面试是什么标准?
请问怎样才能很好的学习hadoop (转载)Sr.SystemsEngineer-Data-and-Analytics is needed
MLGB 的三星samsung创新部门招大数据工程师
请教下目前这些东东面试时更高可能被问到Huami华米(小米手环)湾区招软件工程师,和intern
Zynga onsite经历一个关于big data 系统架构的设计问题
分享一些经验及心得hiring: Senior Big Data and Machine Learning Engineer
一个很好的zookeeper 入门视频opening: front end, full stack, big data
相关话题的讨论汇总
话题: round话题: int话题: 设计话题: given话题: srcuserid
进入JobHunting版参与讨论
1 (共1页)
d*******8
发帖数: 23
1
版中大多数面经都是针对北美new graduate的, 在此贡献一下本人国内找北美工作的一
些经验吧, 也算是答谢mitbbs上分享面经的朋友对我的帮助. 更希望攒攒人品能够抽到
h1b签证 :)
[背景]
国内4年工作经验. 硕士毕业后一直在某做存储的外企工作.
14年7月份开始有出国打算并开始准备.
[准备]
在工作之余每天坚持至少刷3~4道算法题, 并关注各个公司的blog及github上的开源项
目.
1. 算法
Leetcode自然不必说, 必刷. 先是用了将近两个月的时间把leetcode刷了1.5遍, 然
后每次电面和onsite面之前挑一些觉得做得不好的题再刷.

其次就是看geeksforgeeks上题. 这是个老印host的网站, 但是上面的题目分类明晰
,有很多分类底下的题目非常好, 比如DP (印象最深的就是m个鸡蛋n层楼测在哪层楼鸡
蛋会被摔碎的问题)和graph (印象最深的就是单源/多源最短/最长路径和欧拉环). 每
天看一下还是能学到不少新鲜的知识的.

其他就没有了, career up和glass door也断断续续看了一些, 上面的设计题挺好的
, 算法题感觉没有多大帮助.

2. OOD
面向对象设计的面经在网上真是少之又少. 准确说来是题目不少, 但是几乎都没有
解答. 所以我都是按照自己的理解和工作中的用到的一些设计方法来练习这种题目的.
每周用CRC练习1~2道经典的OOD的题 (e.g. elevator, vendor machine, chess game,
ATM, etc)

虽然花了很多精力准备了OOD的题, 但是没有一家公司面过我这种类型的题 :(

3. 系统设计
主要是high scalability和high availability的web service的设计.关注了下面几
个跟系统设计相关的resource:

(1) HighScalability Website
这是我最开始看的网站, 也是我觉得最好的一个网站. 里面总结了很多real-
life architectures, 尤其是"All Time Favorites"这个专栏下的文章都非常经典, 可
以follow文章里的链接找到tech talk的slides或video.

由于本人没有web service相关工作经验,所以一开始看起来非常吃力. 不过
经过一段时间的"煎熬", 还是能够形成high level的design sense的, 尤其是能够知道
在设计一个scalable的web时要注意哪些问题以及这些问题大概有哪些方法解决.


(2) 各个公司的blog及其在github上的open source projects
我看的最多的是Facebook和Linkedin的技术博客. 看HighScalability网站能
够形成high level的design sense, 关注这些公司的博客尤其是其开源项目能够加深了
解每个product的设计和细节.
其实到了一定时间后看这些技术博客和开源项目并不是出于面试的目的了,
而是出于兴趣. 尤其是Facebook的博客, 有时候会详细介绍公司在技术上遇到了哪些问
题和瓶颈, 曾经尝试了什么方法去解决以及为什么采用了现在的方法, 我觉得看看这些
文章还是蛮有意思的.

(3) Paper
看了大概有二十几篇论文, 详细了解了一些技术和产品的设计/实现/性能评
测, 比如vector clock的应用, 改进的consistent hashing, HDFS, zookeeper的实现,
openstack swift的architecture等.

[面试]
投了很多公司, 但是只有FLAG理会了, 其他公司要么就是没有回音,要么就是简历直接
被拒. 中间还穿插着面了一下国内的阿里云(拿到了offer, 但犹豫了一阵还是坚持以出
国为目的吧).
目前拿到了F家Infrastructure组和A家AWS组的offer, 被拒, 狗狗第一次面试挂了, 隔
了半年HR又给了一次面试机会, 仍在进行中.
算法难度: G > F = A > L
系统设计难度: L > A > F > G
系统设计在整个面试中的比例: L (70%) > A (60%) > F (40%) > G(20%)
1. 狗家
电面:
(1) Given a string S and a string T, find all occurences of T in S.
An occurence is found if the substring of S is the permuation of T.
(2) You are given a sorted array of integers in range [0, 99], your task is
to output a string that describes numbers that are missing in the array.
For example:
Given array is [0, 1, 2, 50, 52, 75]
Output string is "3-49, 51, 53-74, 76-99"
(3) Express a target integer as a sum of square numbers, using as few terms
as possible.
For example:
14 = 9 + 4 + 1
13 = 9 + 4
12 = 4 + 4 + 4
(4) You are given an array A. Each element is a tree node and the tree node
is defined as:
typedef struct __TreeNode {
int id; // the node's ID, e.g. 0xEEAD
int parentIndex; // parent node's ID, e.g.
0x5EED
int weight; // the weight of the node
}TreeNode;

Your task is to output the weight sum of each subtree. Should solve
it in O(n) time complexity.
onsite的部分题目可以在我之前的帖子中找到. Onsite是在Beijing的office.
http://www.1point3acres.com/bbs/thread-111785-1-1.html
2. F家
电面一轮, strstr的两个变种, 主要考察能否将一些复杂的逻辑抽象成对象以简化代码.
onsite是美国和英国的面试官来中国面的,我们那一波大概有八九十人, 我是一下午面
完的4面, 春节回家的前一天又skype加面了一轮系统设计.
算法题都是Leetcode和CC150上的题目的原题和变种. 变种题目稍加推理便可以得到答
案.
设计题有两个, 一个是针对search engine中的某个具体问题进行scalable的设计, 还
有一个是multi-thread环境下Cache的设计, 后者的重点也是在scalable, 只不过是多
核上的scalable, 而非多机器上的scalable. 具体题目就不透露啦 :)
除此之外, 其中有一面对我现在工作的project进行了详细的讨论
3. L家
电面1:
(1). OS related questions.
(2). Mirror a tree in place
(3). Design a data structure that has following interfaces:
- bool insert(T val)
- bool remove(T val)
- bool search(T val)
- T removeRandom()

(4). Given an array A[], output another array B[], where B is the product of
all the elements in A except A.
optimization: Could you do it without using divide operator?
电面2:
(1). OS related questions
(2). Detail discussion about my current project
3. //public interface InfluencerFinder {
/**
* Given a matrix of following relationships between N LinkedIn users (
with ids from 0 to N-1):
* followingMatrix[j] == true iff user i is following user j
* thus followingMatrix[j] doesn't imply followingMatrix[j].
* Let's also agree that followingMatrix == false.
*
* An influencer is a user who is:
* - followed by everyone else and
* - not following anyone herself/himself
*
* This method should return the influencer's id in a given matrix of
following relationships,
* or return -1 if there is no influencer in this group.
*/
// int getInfluencer(boolean[][] followingMatrix);
//}
Onsite是通过skype进行的, 总共6面,其中4面是系统设计, 在白板上画框图.
Round 1:
1. Implement an iterator for Array.
When you call next(), returns the next positive integer
Implement hasNext(), returns true if there is one positive integer

For example:
(1,-4,0,5)
next() -> 1
next() -> 5
next() -> 6

2. Serialization and Deserialization of a binary tree with full codes
Round 2:
Implement a hash table with multi-thread access, including the following
interfaces:
(1) bool get(Key k, T &t)
(2) void put(Key k, T t)
(3) void rehash(int newSizeOfArray)
Round 3:
1. Design a key-value store deployed on a single machine. The API your key-
value store provides should be:
(1) bool get(Key k, char *data, int &dataLen)
(2) void put(Key k, char *data, int dataLen)
You are only provided with the following file API from OS:
(1) create file
(2) open file
(3) close file
(4) read file (fid, int offset, int readLen)
(5) append file(fid, char *data, int dataLen) // append data to the end of a
file
2. We have following program:
int main() {
char *buffer = new char[100];
printf("0x%x", buffer);
for(int i = 0; i < 100; ++i)
buffer = 'a' + rand() % 26;
sleep(10000); // sleep 10 seconds
delete [] buffer;
return 0;
}
Now We compile this code to one program, and execute two instances of the
program concurrently. And we find the two program output the same buffer
address "0xFFFF8900". Question is: does the write in the two programs
interfere each other?
Actually this is all about the details of how does virtual memory work, such
as exception handling, MMU, how does inter-process communication works, etc.
Round 4 :
You are given a graph interface:
int[] getConnections(int userID)
In this interface, you can give a userID, then it returns all IDs of his
friends.
Now please implement the following functions:
(1) bool is1stDegreeConnection(int srcUserID, int destUserID)
it returns whether destUserID is the friend of srcUserID
(2) bool is2ndDegreeConnection(int srcUserID, int destUserID)
it returns whether destUserID is the friend of srcUserID's friends
Tried different algorithms and finally got the most optimized one.
(3) bool is3rdDegreeConnection(int srcUserID, int destUserID)
it returns whether destUserID is the srcUserID's friends' friend
(3) is an open question, no need to write codes.

Round 5:
You have thousands of web server and database machines in a datacenter, and
each of them continuously generate real-time statistics data, such as CPU
Utilization, Memory Usage, JVM statistics, etc.
There are also two services. One is figure plotting service, who will plot
figures for all the collected statistics data by some machine learning
algorithm, and the other one is alerting service, who will detect abnormal
behaviours of the machines and sending alert emails or SMS to the
administrators.
Please design this monitoring system, including describing how the
statistics data are collected by the two services and what is the bottleneck
in your monitoring system. The system should be with high scalability and
availability. During this design, had a discussion about consistent hashing,
Zookeeper and HDFS.
Round 6:
Hiring Manager Interview (30 minutes) and one short system design (20
minutes) about the cooperation of old-interface machines and new-interface
machines.
4. A家
电面1:
(1) 10 minutes behavior questions
(2) 10 minutes knowledge-based questions such as memory management, thread
sync, data structure, C++, etc
(3) Search the kth node from the last of a linked list.
(4) word ladder II
电面2:
(1) 20 minutes behavior questions
(2) 15 minutes discussion about block storage related to my work
(3) Given the sbrk() function in Unix, implement a memory management module,
which should basically provides malloc() and free() interfaces.
Onsite interview 是通过 Jebber Video 进行的, 早上5点到10点共五轮.
Round 1:
(1) First 20 minutes all about behavior questions.
(2) Search a target number in a right shifted sorted array, which is
distributed in hundreds of machines in a datacenter.
Round 2:
1. LeetCode上word search的变种

2. 在1中我用到了trie树来加速搜索,于是实现trie树, 包括插入/查询操作.
3. 在1和2的代码中如何对数据进行压缩以节省内存
Round 3:
(1) First 20 minutes all about behavior questions.
(2) Fully discussion on my projects.
(3) 针对我做过的两个项目, 推翻项目中的一些假设, 提出新的问题, 看如何设计新的
方案解决.
Round 4:
这一轮是hiring manager, 所以问的都是behavior questions, 例如why Amazon, how
to handle conficts, how to handle deadlines, any case you insist on
something, etc. 最后问了一个小的设计题.
Round 5:
(1). First 20 minutes all about behavior questions.
(2). 设计Flickr, 包括图片上传, newsfeed, 点赞, 评论等功能的设计和数据库的
scheme. 其中还问到了会用AWS中的那些product去实现设计的系统.
w****a
发帖数: 710
2
楼主不容易,狂赞一下!
恭喜offer
l******2
发帖数: 41
3
恭喜!
y*****e
发帖数: 712
4
好有毅力好棒!bless抽中H1B
D*******7
发帖数: 61
5
thanks for sharing

【在 d*******8 的大作中提到】
: 版中大多数面经都是针对北美new graduate的, 在此贡献一下本人国内找北美工作的一
: 些经验吧, 也算是答谢mitbbs上分享面经的朋友对我的帮助. 更希望攒攒人品能够抽到
: h1b签证 :)
: [背景]
: 国内4年工作经验. 硕士毕业后一直在某做存储的外企工作.
: 14年7月份开始有出国打算并开始准备.
: [准备]
: 在工作之余每天坚持至少刷3~4道算法题, 并关注各个公司的blog及github上的开源项
: 目.
: 1. 算法

t*******e
发帖数: 274
6
赞楼主分享,和楼主差不多的经历,目前还有哪些公司招支持h1b的呢?L家点面完说反
馈不错,但今年h1b的headcount没了
M****5
发帖数: 253
7
re
w*****t
发帖数: 485
8
赞国产神牛!
w*****t
发帖数: 485
9
主要也就flagt了,T这周在国内onsite面。

【在 t*******e 的大作中提到】
: 赞楼主分享,和楼主差不多的经历,目前还有哪些公司招支持h1b的呢?L家点面完说反
: 馈不错,但今年h1b的headcount没了

d*******8
发帖数: 23
10
多谢多谢. 愿大家都有好结果 :)

【在 y*****e 的大作中提到】
: 好有毅力好棒!bless抽中H1B
相关主题
Zynga onsite经历Amazon算驴还是马?
分享一些经验及心得亚麻现在面试是什么标准?
一个很好的zookeeper 入门视频Sr.SystemsEngineer-Data-and-Analytics is needed
进入JobHunting版参与讨论
d*******8
发帖数: 23
11
哎, 我的T在简历关直接就被挂了......
祝面T的童鞋们能够取得好结果

【在 w*****t 的大作中提到】
: 主要也就flagt了,T这周在国内onsite面。
d*******8
发帖数: 23
12
这样啊...... 能不能跟recruiter商量保留offer到明年抽H1B或者在中国这边的office
parking一年后L1过去呢?

【在 t*******e 的大作中提到】
: 赞楼主分享,和楼主差不多的经历,目前还有哪些公司招支持h1b的呢?L家点面完说反
: 馈不错,但今年h1b的headcount没了

c*******7
发帖数: 438
13
太强了,F可以去伦敦,A有温哥华office,抽不到H1B也可以L1,高枕无忧了
t*******e
发帖数: 274
14

office
才电面完,本来说要skype onsite,后来因为这个原因取消了。。。

【在 d*******8 的大作中提到】
: 这样啊...... 能不能跟recruiter商量保留offer到明年抽H1B或者在中国这边的office
: parking一年后L1过去呢?

d*******8
发帖数: 23
15
不清楚以前是怎样的, 但是recruiter说今年Facebook如果没有抽中H1B的话必须跟
London那边team matching后才能去London

【在 c*******7 的大作中提到】
: 太强了,F可以去伦敦,A有温哥华office,抽不到H1B也可以L1,高枕无忧了
d*******8
发帖数: 23
16
我今天一个朋友也是收到了电话说H1B headcount没了,然后onsite就取消了......

【在 t*******e 的大作中提到】
:
: office
: 才电面完,本来说要skype onsite,后来因为这个原因取消了。。。

c*******7
发帖数: 438
17
那就去Amazon呗,AWS组很不错的啊,温哥华跟西雅图那么近

【在 d*******8 的大作中提到】
: 不清楚以前是怎样的, 但是recruiter说今年Facebook如果没有抽中H1B的话必须跟
: London那边team matching后才能去London

x*******9
发帖数: 138
18
赞!
祝前程似锦!
w*****t
发帖数: 485
19
h1b处处受限制啊
最近在L team match,hr一直在找愿意保留head count到10月份的组。。

【在 d*******8 的大作中提到】
: 我今天一个朋友也是收到了电话说H1B headcount没了,然后onsite就取消了......
d*******i
发帖数: 31
20
怎么A家问那么多behavior question.

【在 d*******8 的大作中提到】
: 版中大多数面经都是针对北美new graduate的, 在此贡献一下本人国内找北美工作的一
: 些经验吧, 也算是答谢mitbbs上分享面经的朋友对我的帮助. 更希望攒攒人品能够抽到
: h1b签证 :)
: [背景]
: 国内4年工作经验. 硕士毕业后一直在某做存储的外企工作.
: 14年7月份开始有出国打算并开始准备.
: [准备]
: 在工作之余每天坚持至少刷3~4道算法题, 并关注各个公司的blog及github上的开源项
: 目.
: 1. 算法

相关主题
三星samsung创新部门招大数据工程师hiring: Senior Big Data and Machine Learning Engineer
Huami华米(小米手环)湾区招软件工程师,和internopening: front end, full stack, big data
一个关于big data 系统架构的设计问题hiring in bay area: front end, full stack, data engineer
进入JobHunting版参与讨论
z****0
发帖数: 4413
21
中国人在伦敦随便工作?

【在 c*******7 的大作中提到】
: 太强了,F可以去伦敦,A有温哥华office,抽不到H1B也可以L1,高枕无忧了
w*****t
发帖数: 485
22
英国的工作visa每年用不完..

【在 z****0 的大作中提到】
: 中国人在伦敦随便工作?
d*******8
发帖数: 23
23
版中大多数面经都是针对北美new graduate的, 在此贡献一下本人国内找北美工作的一
些经验吧, 也算是答谢mitbbs上分享面经的朋友对我的帮助. 更希望攒攒人品能够抽到
h1b签证 :)
[背景]
国内4年工作经验. 硕士毕业后一直在某做存储的外企工作.
14年7月份开始有出国打算并开始准备.
[准备]
在工作之余每天坚持至少刷3~4道算法题, 并关注各个公司的blog及github上的开源项
目.
1. 算法
Leetcode自然不必说, 必刷. 先是用了将近两个月的时间把leetcode刷了1.5遍, 然
后每次电面和onsite面之前挑一些觉得做得不好的题再刷.

其次就是看geeksforgeeks上题. 这是个老印host的网站, 但是上面的题目分类明晰
,有很多分类底下的题目非常好, 比如DP (印象最深的就是m个鸡蛋n层楼测在哪层楼鸡
蛋会被摔碎的问题)和graph (印象最深的就是单源/多源最短/最长路径和欧拉环). 每
天看一下还是能学到不少新鲜的知识的.

其他就没有了, career up和glass door也断断续续看了一些, 上面的设计题挺好的
, 算法题感觉没有多大帮助.

2. OOD
面向对象设计的面经在网上真是少之又少. 准确说来是题目不少, 但是几乎都没有
解答. 所以我都是按照自己的理解和工作中的用到的一些设计方法来练习这种题目的.
每周用CRC练习1~2道经典的OOD的题 (e.g. elevator, vendor machine, chess game,
ATM, etc)

虽然花了很多精力准备了OOD的题, 但是没有一家公司面过我这种类型的题 :(

3. 系统设计
主要是high scalability和high availability的web service的设计.关注了下面几
个跟系统设计相关的resource:

(1) HighScalability Website
这是我最开始看的网站, 也是我觉得最好的一个网站. 里面总结了很多real-
life architectures, 尤其是"All Time Favorites"这个专栏下的文章都非常经典, 可
以follow文章里的链接找到tech talk的slides或video.

由于本人没有web service相关工作经验,所以一开始看起来非常吃力. 不过
经过一段时间的"煎熬", 还是能够形成high level的design sense的, 尤其是能够知道
在设计一个scalable的web时要注意哪些问题以及这些问题大概有哪些方法解决.


(2) 各个公司的blog及其在github上的open source projects
我看的最多的是Facebook和Linkedin的技术博客. 看HighScalability网站能
够形成high level的design sense, 关注这些公司的博客尤其是其开源项目能够加深了
解每个product的设计和细节.
其实到了一定时间后看这些技术博客和开源项目并不是出于面试的目的了,
而是出于兴趣. 尤其是Facebook的博客, 有时候会详细介绍公司在技术上遇到了哪些问
题和瓶颈, 曾经尝试了什么方法去解决以及为什么采用了现在的方法, 我觉得看看这些
文章还是蛮有意思的.

(3) Paper
看了大概有二十几篇论文, 详细了解了一些技术和产品的设计/实现/性能评
测, 比如vector clock的应用, 改进的consistent hashing, HDFS, zookeeper的实现,
openstack swift的architecture等.

[面试]
投了很多公司, 但是只有FLAG理会了, 其他公司要么就是没有回音,要么就是简历直接
被拒. 中间还穿插着面了一下国内的阿里云(拿到了offer, 但犹豫了一阵还是坚持以出
国为目的吧).
目前拿到了F家Infrastructure组和A家AWS组的offer, L家被拒, 狗狗第一次面试挂了,
隔了半年HR又给了一次面试机会, 不过由于已经accept了F家的offer, 所以onsite面
试没有去参加.
算法难度: G > F = A > L
系统设计难度: L > A > F > G
系统设计在整个面试中的比例: L (70%) > A (60%) > F (40%) > G(20%)
1. 狗家
电面:
(1) Given a string S and a string T, find all occurences of T in S.
An occurence is found if the substring of S is the permuation of T.
(2) You are given a sorted array of integers in range [0, 99], your task is
to output a string that describes numbers that are missing in the array.
For example:
Given array is [0, 1, 2, 50, 52, 75]
Output string is "3-49, 51, 53-74, 76-99"
(3) Express a target integer as a sum of square numbers, using as few terms
as possible.
For example:
14 = 9 + 4 + 1
13 = 9 + 4
12 = 4 + 4 + 4
(4) You are given an array A. Each element is a tree node and the tree node
is defined as:
typedef struct __TreeNode {
int id; // the node's ID, e.g. 0xEEAD
int parentIndex; // parent node's ID, e.g.
0x5EED
int weight; // the weight of the node
}TreeNode;

Your task is to output the weight sum of each subtree. Should solve
it in O(n) time complexity.
onsite的部分题目可以在我之前的帖子中找到. Onsite是在Beijing的office.
http://www.1point3acres.com/bbs/thread-111785-1-1.html
2. F家
电面一轮, strstr的两个变种, 主要考察能否将一些复杂的逻辑抽象成对象以简化代码.
onsite是美国和英国的面试官来中国面的,我们那一波大概有八九十人, 我是一下午面
完的4面, 春节回家的前一天又skype加面了一轮系统设计.
算法题都是Leetcode和CC150上的题目的原题和变种. 变种题目稍加推理便可以得到答
案.
设计题有两个, 一个是针对search engine中的某个具体问题进行scalable的设计, 还
有一个是multi-thread环境下Cache的设计, 后者的重点也是在scalable, 只不过是多
核上的scalable, 而非多机器上的scalable. 具体题目就不透露啦 :)
除此之外, 其中有一面对我现在工作的project进行了详细的讨论
3. L家
电面1:
(1). OS related questions.
(2). Mirror a tree in place
(3). Design a data structure that has following interfaces:
- bool insert(T val)
- bool remove(T val)
- bool search(T val)
- T removeRandom()

(4). Given an array A[], output another array B[], where B is the product of
all the elements in A except A.
optimization: Could you do it without using divide operator?
电面2:
(1). OS related questions
(2). Detail discussion about my current project
3. //public interface InfluencerFinder {
/**
* Given a matrix of following relationships between N LinkedIn users (
with ids from 0 to N-1):
* followingMatrix[j] == true iff user i is following user j
* thus followingMatrix[j] doesn't imply followingMatrix[j].
* Let's also agree that followingMatrix == false.
*
* An influencer is a user who is:
* - followed by everyone else and
* - not following anyone herself/himself
*
* This method should return the influencer's id in a given matrix of
following relationships,
* or return -1 if there is no influencer in this group.
*/
// int getInfluencer(boolean[][] followingMatrix);
//}
Onsite是通过skype进行的, 总共6面,其中4面是系统设计, 在白板上画框图.
Round 1:
1. Implement an iterator for Array.
When you call next(), returns the next positive integer
Implement hasNext(), returns true if there is one positive integer

For example:
(1,-4,0,5)
next() -> 1
next() -> 5
next() -> 6

2. Serialization and Deserialization of a binary tree with full codes
Round 2:
Implement a hash table with multi-thread access, including the following
interfaces:
(1) bool get(Key k, T &t)
(2) void put(Key k, T t)
(3) void rehash(int newSizeOfArray)
Round 3:
1. Design a key-value store deployed on a single machine. The API your key-
value store provides should be:
(1) bool get(Key k, char *data, int &dataLen)
(2) void put(Key k, char *data, int dataLen)
You are only provided with the following file API from OS:
(1) create file
(2) open file
(3) close file
(4) read file (fid, int offset, int readLen)
(5) append file(fid, char *data, int dataLen) // append data to the end of a
file
2. We have following program:
int main() {
char *buffer = new char[100];
printf("0x%x", buffer);
for(int i = 0; i < 100; ++i)
buffer = 'a' + rand() % 26;
sleep(10000); // sleep 10 seconds
delete [] buffer;
return 0;
}
Now We compile this code to one program, and execute two instances of the
program concurrently. And we find the two program output the same buffer
address "0xFFFF8900". Question is: does the write in the two programs
interfere each other?
Actually this is all about the details of how does virtual memory work, such
as exception handling, MMU, how does inter-process communication works, etc.
Round 4 :
You are given a graph interface:
int[] getConnections(int userID)
In this interface, you can give a userID, then it returns all IDs of his
friends.
Now please implement the following functions:
(1) bool is1stDegreeConnection(int srcUserID, int destUserID)
it returns whether destUserID is the friend of srcUserID
(2) bool is2ndDegreeConnection(int srcUserID, int destUserID)
it returns whether destUserID is the friend of srcUserID's friends
Tried different algorithms and finally got the most optimized one.
(3) bool is3rdDegreeConnection(int srcUserID, int destUserID)
it returns whether destUserID is the srcUserID's friends' friend
(3) is an open question, no need to write codes.

Round 5:
You have thousands of web server and database machines in a datacenter, and
each of them continuously generate real-time statistics data, such as CPU
Utilization, Memory Usage, JVM statistics, etc.
There are also two services. One is figure plotting service, who will plot
figures for all the collected statistics data by some machine learning
algorithm, and the other one is alerting service, who will detect abnormal
behaviours of the machines and sending alert emails or SMS to the
administrators.
Please design this monitoring system, including describing how the
statistics data are collected by the two services and what is the bottleneck
in your monitoring system. The system should be with high scalability and
availability. During this design, had a discussion about consistent hashing,
Zookeeper and HDFS.
Round 6:
Hiring Manager Interview (30 minutes) and one short system design (20
minutes) about the cooperation of old-interface machines and new-interface
machines.
4. A家
电面1:
(1) 10 minutes behavior questions
(2) 10 minutes knowledge-based questions such as memory management, thread
sync, data structure, C++, etc
(3) Search the kth node from the last of a linked list.
(4) word ladder II
电面2:
(1) 20 minutes behavior questions
(2) 15 minutes discussion about block storage related to my work
(3) Given the sbrk() function in Unix, implement a memory management module,
which should basically provides malloc() and free() interfaces.
Onsite interview 是通过 Jebber Video 进行的, 早上5点到10点共五轮.
Round 1:
(1) First 20 minutes all about behavior questions.
(2) Search a target number in a right shifted sorted array, which is
distributed in hundreds of machines in a datacenter.
Round 2:
1. LeetCode上word search的变种

2. 在1中我用到了trie树来加速搜索,于是实现trie树, 包括插入/查询操作.
3. 在1和2的代码中如何对数据进行压缩以节省内存
Round 3:
(1) First 20 minutes all about behavior questions.
(2) Fully discussion on my projects.
(3) 针对我做过的两个项目, 推翻项目中的一些假设, 提出新的问题, 看如何设计新的
方案解决.
Round 4:
这一轮是hiring manager, 所以问的都是behavior questions, 例如why Amazon, how
to handle conficts, how to handle deadlines, any case you insist on
something, etc. 最后问了一个小的设计题.
Round 5:
(1). First 20 minutes all about behavior questions.
(2). 设计Flickr, 包括图片上传, newsfeed, 点赞, 评论等功能的设计和数据库的
scheme. 其中还问到了会用AWS中的那些product去实现设计的系统.
w****a
发帖数: 710
24
楼主不容易,狂赞一下!
恭喜offer
l******2
发帖数: 41
25
恭喜!
y*****e
发帖数: 712
26
好有毅力好棒!bless抽中H1B
D*******7
发帖数: 61
27
thanks for sharing

【在 d*******8 的大作中提到】
: 版中大多数面经都是针对北美new graduate的, 在此贡献一下本人国内找北美工作的一
: 些经验吧, 也算是答谢mitbbs上分享面经的朋友对我的帮助. 更希望攒攒人品能够抽到
: h1b签证 :)
: [背景]
: 国内4年工作经验. 硕士毕业后一直在某做存储的外企工作.
: 14年7月份开始有出国打算并开始准备.
: [准备]
: 在工作之余每天坚持至少刷3~4道算法题, 并关注各个公司的blog及github上的开源项
: 目.
: 1. 算法

t*******e
发帖数: 274
28
赞楼主分享,和楼主差不多的经历,目前还有哪些公司招支持h1b的呢?L家点面完说反
馈不错,但今年h1b的headcount没了
M****5
发帖数: 253
29
re
w*****t
发帖数: 485
30
赞国产神牛!
相关主题
A家面经, offer, 请教Negotiation系统设计题怎么准备
Amazon AWS招人请问怎样才能很好的学习hadoop (转载)
赞被AMAZON速据,少量面经MLGB 的
进入JobHunting版参与讨论
w*****t
发帖数: 485
31
主要也就flagt了,T这周在国内onsite面。

【在 t*******e 的大作中提到】
: 赞楼主分享,和楼主差不多的经历,目前还有哪些公司招支持h1b的呢?L家点面完说反
: 馈不错,但今年h1b的headcount没了

d*******8
发帖数: 23
32
多谢多谢. 愿大家都有好结果 :)

【在 y*****e 的大作中提到】
: 好有毅力好棒!bless抽中H1B
d*******8
发帖数: 23
33
哎, 我的T在简历关直接就被挂了......
祝面T的童鞋们能够取得好结果

【在 w*****t 的大作中提到】
: 主要也就flagt了,T这周在国内onsite面。
d*******8
发帖数: 23
34
这样啊...... 能不能跟recruiter商量保留offer到明年抽H1B或者在中国这边的office
parking一年后L1过去呢?

【在 t*******e 的大作中提到】
: 赞楼主分享,和楼主差不多的经历,目前还有哪些公司招支持h1b的呢?L家点面完说反
: 馈不错,但今年h1b的headcount没了

c*******7
发帖数: 438
35
太强了,F可以去伦敦,A有温哥华office,抽不到H1B也可以L1,高枕无忧了
t*******e
发帖数: 274
36

office
才电面完,本来说要skype onsite,后来因为这个原因取消了。。。

【在 d*******8 的大作中提到】
: 这样啊...... 能不能跟recruiter商量保留offer到明年抽H1B或者在中国这边的office
: parking一年后L1过去呢?

d*******8
发帖数: 23
37
不清楚以前是怎样的, 但是recruiter说今年Facebook如果没有抽中H1B的话必须跟
London那边team matching后才能去London

【在 c*******7 的大作中提到】
: 太强了,F可以去伦敦,A有温哥华office,抽不到H1B也可以L1,高枕无忧了
d*******8
发帖数: 23
38
我今天一个朋友也是收到了电话说H1B headcount没了,然后onsite就取消了......

【在 t*******e 的大作中提到】
:
: office
: 才电面完,本来说要skype onsite,后来因为这个原因取消了。。。

c*******7
发帖数: 438
39
那就去Amazon呗,AWS组很不错的啊,温哥华跟西雅图那么近

【在 d*******8 的大作中提到】
: 不清楚以前是怎样的, 但是recruiter说今年Facebook如果没有抽中H1B的话必须跟
: London那边team matching后才能去London

x*******9
发帖数: 138
40
赞!
祝前程似锦!
相关主题
MLGB 的分享一些经验及心得
请教下目前这些东东面试时更高可能被问到一个很好的zookeeper 入门视频
Zynga onsite经历Amazon算驴还是马?
进入JobHunting版参与讨论
w*****t
发帖数: 485
41
h1b处处受限制啊
最近在L team match,hr一直在找愿意保留head count到10月份的组。。

【在 d*******8 的大作中提到】
: 我今天一个朋友也是收到了电话说H1B headcount没了,然后onsite就取消了......
d*******i
发帖数: 31
42
怎么A家问那么多behavior question.

【在 d*******8 的大作中提到】
: 版中大多数面经都是针对北美new graduate的, 在此贡献一下本人国内找北美工作的一
: 些经验吧, 也算是答谢mitbbs上分享面经的朋友对我的帮助. 更希望攒攒人品能够抽到
: h1b签证 :)
: [背景]
: 国内4年工作经验. 硕士毕业后一直在某做存储的外企工作.
: 14年7月份开始有出国打算并开始准备.
: [准备]
: 在工作之余每天坚持至少刷3~4道算法题, 并关注各个公司的blog及github上的开源项
: 目.
: 1. 算法

z****0
发帖数: 4413
43
中国人在伦敦随便工作?

【在 c*******7 的大作中提到】
: 太强了,F可以去伦敦,A有温哥华office,抽不到H1B也可以L1,高枕无忧了
w*****t
发帖数: 485
44
英国的工作visa每年用不完..

【在 z****0 的大作中提到】
: 中国人在伦敦随便工作?
j******g
发帖数: 2689
45
很牛啊,楼主。
d*****c
发帖数: 605
46
congrats!
1 (共1页)
进入JobHunting版参与讨论
相关主题
opening: front end, full stack, big data请教下目前这些东东面试时更高可能被问到
hiring in bay area: front end, full stack, data engineerZynga onsite经历
A家面经, offer, 请教Negotiation分享一些经验及心得
Amazon AWS招人一个很好的zookeeper 入门视频
赞被AMAZON速据,少量面经Amazon算驴还是马?
系统设计题怎么准备亚麻现在面试是什么标准?
请问怎样才能很好的学习hadoop (转载)Sr.SystemsEngineer-Data-and-Analytics is needed
MLGB 的三星samsung创新部门招大数据工程师
相关话题的讨论汇总
话题: round话题: int话题: 设计话题: given话题: srcuserid