查看: 8647|回复: 32

发面经攒人品 @Epic, Two Sigma, Pandora, Yahoo, Google, Facebook, Linkedin

[复制链接] |试试Instant~ |关注本帖
alex2013 发表于 2014-12-1 10:03:14 | 显示全部楼层 |阅读模式

2014(10-12月) 码农类 硕士 全职@Epic, Two Sigma, Pandora - 内推 - HR筛选 技术电面 Onsite |Other


您需要 登录 才可以下载或查看,没有帐号?获取更多干货,去instant注册!


OA. more info on 1point3acres.com
1,string mangler,toggle vowel
2,number in matrix,bigger than all others in this row,less than other in this column
3,well ordered number
4,colorful number
Phone Interview
Given a string, which contains ASI II code char, there is duplicate, not using external package, return string only have unique char in the same order.

On site:
1, project presentation
2, an article have links to different other articles, find shortest path between two articles (shortest path between two graph node)  - BFS search, stop when level is too large

两周后给了offer,应该去面试都有offer把。。。. 1point3acres.com/bbs

Two Sigma
OA两道原题:. Waral 鍗氬鏈夋洿澶氭枃绔,

http://blog.csdn.net/he_wolf/article/details/21770679http://blog.csdn.net/he_wolf/article/details/21857905. 鍥磋鎴戜滑@1point 3 acres
. 鐗涗汉浜戦泦,涓浜╀笁鍒嗗湴

Phone Screen - someone from infrastructure team
1, resume
2, Given an application that a class with big data, so creating an instance of this class is slow, how to solve it?
3, Someone implement hash table and it is slow, why?
4, use hash table to store data, but there is much more data than the machine's RAM, how to deal with that?
    add one more machine, rehash and reconstruct the hash table
5, A application involves with multiple machines and it is slow, figure out why
    can use matrix to measure the latency and throughput of each machine
6, process & thread
7, throughput & latency

On site: (悲剧地没只撑到中午饭 = =). from: 1point3acres.com/bbs
1, write a function to determine if a given long num is power of 4
  Using a random number iterator to crate a iterator that only return multiply of 5

2, given a 2 dimension matrix,  set all cubes to 1 or 0 according to the number of neighbors' value of the cube at the same time (game of life). Waral 鍗氬鏈夋洿澶氭枃绔,
  If we have multiple processor, how do u improve that
  If we have multiple machines, how do we apply

3, Java find bug, multimap implements a map interface and inherits other abstract map

内推Search大组里面的用hadoop的team,所以电面扯了比较多hadoop的东西,一般估计没这么多。-google 1point3acres
What's MapReduce, how does it work.鐣欏璁哄潧-涓浜-涓夊垎鍦
Difference btw string and stringbuilder, how to compare two string in Java, how to compare two objects
Do you know pig and oozie, why hadoop is better than other distributed system model for processing big data
Different between abstract and interface, when to use which-google 1point3acres

Array a has ten elements ,array b has nine elements that are from array a, find the missing one, do not use extra space
-google 1point3acres


. from: 1point3acres.com/bbs ----------. Waral 鍗氬鏈夋洿澶氭枃绔,
1st Phone - hiring manager. visit 1point3acres.com for more.
Difference between throw and throws
How to explain Internet to a non-tech person
What part of Pandora do you think is the least interesting

2nd Phone
Wildcard matching
Final - Skype
round 1
Q1  three sum
Q2 Find the contiguous subarray within an array A (containing at least one number) which has the largest sum. (max sum subarray)
round 2
technical talk about resume
round 3
resume, multithreading question

two thread, one calls functionFoo another calls functionBar
Print "FooBar" infinite times

void functionFoo() {

void functionBar() {
    while(1) {
            System.out.print("Bar");. 鍥磋鎴戜滑@1point 3 acres
volatile cause busy waiting, but how to avoid busy waiting?

感谢买买提上热心学长内推,还帮忙要feedback,但是运气差了一点,最后一轮碰上了黑心三哥,出了这个多线程的题目,本人给了volatile的方法但是他说busy waiting要优化,最后没想出来用semaphore。给了strong negative,说没有engineer common sense,实在是吐槽无力,也算是第一次碰上黑三,给之后攒点人品。。。

Google. 涓浜-涓夊垎-鍦帮紝鐙鍙戝竷
phone. from: 1point3acres.com/bbs
Search in rotated array
. 1point3acres.com/bbsDesign Cache (LRU)
if cache is too big to store on main memory, how to design to use disk
if multiple machines, how to handle hardware failure


. Waral 鍗氬鏈夋洿澶氭枃绔,-----------
1st phone
1, write Singleton class
     * Three segments of lengths A, B, C form a triangle iff
     *      A + B > C
     *      B + C > A
     *      A + C > B
-google 1point3acres     *
     * e.g.
     *  6, 4, 5 can form a triangle
     * 10, 2, 7 can't
     * Given a list of segments lengths algorithm should find at least one triplet of segments that form a triangle (if any).
     * Method should return an array of either:. 鐣欏鐢宠璁哄潧-涓浜╀笁鍒嗗湴
     * - 3 elements: segments that form a triangle (i.e. satisfy the condition above)
     * - empty array if there are no such segments

     * 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.
     *. Waral 鍗氬鏈夋洿澶氭枃绔,
     * An influencer is a user who is:. from: 1point3acres.com/bbs
     * - 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.
    //input: boolean[][] followingMatrix

   * If A knows B, then A can’t be celebrity. Discard A, and B may be celebrity..1point3acres缃
   * If A doesn’t know B, then B can’t be celebrity. Discard B, and A may be celebrity.
   * Repeat above two steps till we left with only one person.
   * Ensure the remained person is celebrity. (Why do we need this step? Maybe no one is celebrity)

-google 1point3acres

Resume  projects  (undergraduate project = =!)
two sum (did before) -> similar to sort color
. 鐣欏鐢宠璁哄潧-涓浜╀笁鍒嗗湴
boolean is_low(int a)
boolean is_med(int a)
boolean is_high(int a).鐣欏璁哄潧-涓浜-涓夊垎鍦

input: [-9 (low), 10(high), 4 (med), 7(low), 3(high), 50(med)]
output: [-9, 7, 4, 50, 10, 3]

follow up:
int rank(int a) -> 0 to k - 1
. 鍥磋鎴戜滑@1point 3 acres
k ranks, then how to sort the array
1, TreeMap stores <rank, List<Integer>>.鏈枃鍘熷垱鑷1point3acres璁哄潧
2, No extra space: similar to insertion sort

. 鐣欏鐢宠璁哄潧-涓浜╀笁鍒嗗湴






 楼主| alex2013 发表于 2014-12-1 12:28:58 | 显示全部楼层
其实一直想问为什么地里发帖不能自己编辑的。。。= =




回复 支持 1 反对 0

使用道具 举报

houqingniao 发表于 2014-12-1 13:50:36 | 显示全部楼层
FB 的 follow up 是啥意思?
接着上面的题, 给一个数字,让你返回它在上面排序结果的rank?
回复 支持 反对

使用道具 举报

纠结帝 发表于 2014-12-1 14:15:09 | 显示全部楼层
alex2013 发表于 2014-12-1 12:28. 鍥磋鎴戜滑@1point 3 acres
其实一直想问为什么地里发帖不能自己编辑的。。。= =

因为给你编辑了 你可以把所有东西都删了 然后就相当于允许你删除一样了....
回复 支持 反对

使用道具 举报

isomorphism 发表于 2014-12-1 14:24:58 | 显示全部楼层
回复 支持 反对

使用道具 举报

sally216 发表于 2014-12-1 15:18:20 | 显示全部楼层
lz fb面试完多久给的通知?
回复 支持 反对

使用道具 举报

annawuyi 发表于 2014-12-1 19:57:58 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| alex2013 发表于 2014-12-2 10:06:30 | 显示全部楼层
houqingniao 发表于 2014-12-1 13:50
FB 的 follow up 是啥意思?
接着上面的题, 给一个数字,让你返回它在上面排序结果的rank?.鏈枃鍘熷垱鑷1point3acres璁哄潧

就是本来数组里面数字只有low,mid,high三个rank,现在变成有k个rank,哪个数字属于哪个rank由那个rank(int a)给出,要你再按照rank对数组排序。
回复 支持 反对

使用道具 举报

 楼主| alex2013 发表于 2014-12-2 10:06:56 | 显示全部楼层
sally216 发表于 2014-12-1 15:18
. 1point3acres.com/bbslz fb面试完多久给的通知?
. 鐗涗汉浜戦泦,涓浜╀笁鍒嗗湴
回复 支持 反对

使用道具 举报

 楼主| alex2013 发表于 2014-12-2 10:07:25 | 显示全部楼层
annawuyi 发表于 2014-12-1 19:57. From 1point 3acres bbs
楼主很厉害啊,这么多面试。请问除了2个内推的,其他公司是怎么投简历的?买买提是什么网站?能给个链接吗 ...

基本都是内推,two sigma和epic是网投的,这年头内推都不一定拿面试
回复 支持 反对

使用道具 举报

houqingniao 发表于 2014-12-2 13:09:32 | 显示全部楼层
alex2013 发表于 2014-12-2 10:06
就是本来数组里面数字只有low,mid,high三个rank,现在变成有k个rank,哪个数字属于哪个rank由那个rank( ...
Got it. thanks.
回复 支持 反对

使用道具 举报

hj735 发表于 2014-12-2 13:24:12 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| alex2013 发表于 2014-12-2 13:30:04 | 显示全部楼层
hj735 发表于 2014-12-2 13:24

回复 支持 反对

使用道具 举报

wswll 发表于 2014-12-3 00:34:34 | 显示全部楼层
回复 支持 反对

使用道具 举报

hj735 发表于 2014-12-3 10:14:08 | 显示全部楼层
wswll 发表于 2014-12-3 00:34

回复 支持 反对

使用道具 举报

notbad 发表于 2014-12-6 12:04:49 | 显示全部楼层
Using a random number iterator to crate a iterator that only return multiply of 5?
这个random number iterator 是random access iterator的意思?
回复 支持 反对

使用道具 举报

 楼主| alex2013 发表于 2014-12-6 14:39:17 | 显示全部楼层
notbad 发表于 2014-12-6 12:04. more info on 1point3acres.com
Using a random number iterator to crate a iterator that only return multiply of 5?
这个random numb ...

不是的,是每次调用next()会返回一个random number
回复 支持 反对

使用道具 举报

liuzhe1218 发表于 2014-12-12 12:16:59 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| alex2013 发表于 2014-12-12 13:02:14 | 显示全部楼层
liuzhe1218 发表于 2014-12-12 12:16

Growth & Retention
回复 支持 反对

使用道具 举报

ki87uj 发表于 2015-1-7 06:06:25 | 显示全部楼层
two sigma今天电面,问得问题几乎就是按照你的list来的
回复 支持 反对

使用道具 举报





一亩三分地推荐上一条 /5 下一条

手机版|小黑屋|一亩三分地论坛声明 ( 沪ICP备11015994号 )

custom counter

GMT+8, 2017-4-30 08:07

Powered by Discuz! X3

© 2001-2013 Comsenz Inc. Design By HUXTeam

快速回复 返回顶部 返回列表