由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 顶风作案,Google面经
相关主题
ooyala,apple,ebay面经刚刚onsite G家,发面经求祝福
解一道 GOOGLE 面试题 ...直方图盛水最大容量问题
问一个题直方图下最大矩形问题 o(n) 解对吗?
白板代码,直方图包含的最大矩形面积求Leetcode OJ Maximal Rectangle的n^2解法
一个老面试题面试题请教:一个矩阵,里面的值是0或1,找出最大子矩阵,此子矩阵的值全为1
明天onsite却发现好多还没掌握啊一道老题
最近大公司的面试题有不再偏难的趋势这里有懂business intelligence development的同学吗?
问问题,0/1 矩阵内最大1矩阵的问题Amazon onsite面经
相关话题的讨论汇总
话题: given话题: point话题: assume话题: cube话题: google
进入JobHunting版参与讨论
1 (共1页)
T*****8
发帖数: 119
1
看大家都吵得不亦乐乎。作为一个深度潜水员和WSN,我就顶风而上,去年面试NYC
Google
1. 在直方图里面找Biggest Square. 没有准备这个提,答的不好
2. 在一个N Dimensional 的正方形里面,Assume the top right point is (n,n,....
n) and bottom left point is (0, 0, 0.... 0), given any point in the cube,
find all the paths inside the cube to the (n, n,...n)
3. Given a matrix with values of 0 and 1, for any point, if there are three
1s around it, change its value to 1. Otherwise, mark its value to 0 (cannot
recall exactly anymore). how to do it. Given a very big such matrix and n
computer, how to do it efficiently. Assume each computer has very limited
memory, how to do it.
4. Network related questions since I was a network guy
5. Design question...
H*M
发帖数: 1268
2
哥们好样的

..
three
cannot

【在 T*****8 的大作中提到】
: 看大家都吵得不亦乐乎。作为一个深度潜水员和WSN,我就顶风而上,去年面试NYC
: Google
: 1. 在直方图里面找Biggest Square. 没有准备这个提,答的不好
: 2. 在一个N Dimensional 的正方形里面,Assume the top right point is (n,n,....
: n) and bottom left point is (0, 0, 0.... 0), given any point in the cube,
: find all the paths inside the cube to the (n, n,...n)
: 3. Given a matrix with values of 0 and 1, for any point, if there are three
: 1s around it, change its value to 1. Otherwise, mark its value to 0 (cannot
: recall exactly anymore). how to do it. Given a very big such matrix and n
: computer, how to do it efficiently. Assume each computer has very limited

f*****w
发帖数: 2602
3

..
cube,
three
(cannot
n
limited
3 有什么好方法吗?

【在 T*****8 的大作中提到】
: 看大家都吵得不亦乐乎。作为一个深度潜水员和WSN,我就顶风而上,去年面试NYC
: Google
: 1. 在直方图里面找Biggest Square. 没有准备这个提,答的不好
: 2. 在一个N Dimensional 的正方形里面,Assume the top right point is (n,n,....
: n) and bottom left point is (0, 0, 0.... 0), given any point in the cube,
: find all the paths inside the cube to the (n, n,...n)
: 3. Given a matrix with values of 0 and 1, for any point, if there are three
: 1s around it, change its value to 1. Otherwise, mark its value to 0 (cannot
: recall exactly anymore). how to do it. Given a very big such matrix and n
: computer, how to do it efficiently. Assume each computer has very limited

f****4
发帖数: 1359
4
顶一个~
T**W
发帖数: 247
5
顶,就一个字。
m**q
发帖数: 189
6
把数组按行分给各个机器,比如一共有8000行,8个机器,
则每个机器处理1000行。每个机器处理的时候只要把
前三行的前三列装到内存就行,每次处理一列后把前一列
删除,后面一列加入,直到所有列处理完毕。然后删除
前一行,加入新一行,继续处理
注意分数组的时候需要,两个机器直接有两行是共用的。

【在 f*****w 的大作中提到】
:
: ..
: cube,
: three
: (cannot
: n
: limited
: 3 有什么好方法吗?

r*******g
发帖数: 1335
7
Hi
第一题题目详细是什么,能说说吗

..
three
cannot

【在 T*****8 的大作中提到】
: 看大家都吵得不亦乐乎。作为一个深度潜水员和WSN,我就顶风而上,去年面试NYC
: Google
: 1. 在直方图里面找Biggest Square. 没有准备这个提,答的不好
: 2. 在一个N Dimensional 的正方形里面,Assume the top right point is (n,n,....
: n) and bottom left point is (0, 0, 0.... 0), given any point in the cube,
: find all the paths inside the cube to the (n, n,...n)
: 3. Given a matrix with values of 0 and 1, for any point, if there are three
: 1s around it, change its value to 1. Otherwise, mark its value to 0 (cannot
: recall exactly anymore). how to do it. Given a very big such matrix and n
: computer, how to do it efficiently. Assume each computer has very limited

n**s
发帖数: 2230
8
这道题:
http://www.informatik.uni-ulm.de/acm/Locals/2003/html/histogram
答案:
http://www.informatik.uni-ulm.de/acm/Locals/2003/html/judge.htm

【在 r*******g 的大作中提到】
: Hi
: 第一题题目详细是什么,能说说吗
:
: ..
: three
: cannot

w****r
发帖数: 245
9
多谢,how's the result?

..
three
cannot

【在 T*****8 的大作中提到】
: 看大家都吵得不亦乐乎。作为一个深度潜水员和WSN,我就顶风而上,去年面试NYC
: Google
: 1. 在直方图里面找Biggest Square. 没有准备这个提,答的不好
: 2. 在一个N Dimensional 的正方形里面,Assume the top right point is (n,n,....
: n) and bottom left point is (0, 0, 0.... 0), given any point in the cube,
: find all the paths inside the cube to the (n, n,...n)
: 3. Given a matrix with values of 0 and 1, for any point, if there are three
: 1s around it, change its value to 1. Otherwise, mark its value to 0 (cannot
: recall exactly anymore). how to do it. Given a very big such matrix and n
: computer, how to do it efficiently. Assume each computer has very limited

h*****n
发帖数: 1244
10
MARK
相关主题
明天onsite却发现好多还没掌握啊刚刚onsite G家,发面经求祝福
最近大公司的面试题有不再偏难的趋势直方图盛水最大容量问题
问问题,0/1 矩阵内最大1矩阵的问题直方图下最大矩形问题 o(n) 解对吗?
进入JobHunting版参与讨论
T*****8
发帖数: 119
11
看大家都吵得不亦乐乎。作为一个深度潜水员和WSN,我就顶风而上,去年面试NYC
Google
1. 在直方图里面找Biggest Square. 没有准备这个提,答的不好
2. 在一个N Dimensional 的正方形里面,Assume the top right point is (n,n,....
n) and bottom left point is (0, 0, 0.... 0), given any point in the cube,
find all the paths inside the cube to the (n, n,...n)
3. Given a matrix with values of 0 and 1, for any point, if there are three
1s around it, change its value to 1. Otherwise, mark its value to 0 (cannot
recall exactly anymore). how to do it. Given a very big such matrix and n
computer, how to do it efficiently. Assume each computer has very limited
memory, how to do it.
4. Network related questions since I was a network guy
5. Design question...
H*M
发帖数: 1268
12
哥们好样的

..
three
cannot

【在 T*****8 的大作中提到】
: 看大家都吵得不亦乐乎。作为一个深度潜水员和WSN,我就顶风而上,去年面试NYC
: Google
: 1. 在直方图里面找Biggest Square. 没有准备这个提,答的不好
: 2. 在一个N Dimensional 的正方形里面,Assume the top right point is (n,n,....
: n) and bottom left point is (0, 0, 0.... 0), given any point in the cube,
: find all the paths inside the cube to the (n, n,...n)
: 3. Given a matrix with values of 0 and 1, for any point, if there are three
: 1s around it, change its value to 1. Otherwise, mark its value to 0 (cannot
: recall exactly anymore). how to do it. Given a very big such matrix and n
: computer, how to do it efficiently. Assume each computer has very limited

f*****w
发帖数: 2602
13

..
cube,
three
(cannot
n
limited
3 有什么好方法吗?

【在 T*****8 的大作中提到】
: 看大家都吵得不亦乐乎。作为一个深度潜水员和WSN,我就顶风而上,去年面试NYC
: Google
: 1. 在直方图里面找Biggest Square. 没有准备这个提,答的不好
: 2. 在一个N Dimensional 的正方形里面,Assume the top right point is (n,n,....
: n) and bottom left point is (0, 0, 0.... 0), given any point in the cube,
: find all the paths inside the cube to the (n, n,...n)
: 3. Given a matrix with values of 0 and 1, for any point, if there are three
: 1s around it, change its value to 1. Otherwise, mark its value to 0 (cannot
: recall exactly anymore). how to do it. Given a very big such matrix and n
: computer, how to do it efficiently. Assume each computer has very limited

f****4
发帖数: 1359
14
顶一个~
T**W
发帖数: 247
15
顶,就一个字。
m**q
发帖数: 189
16
把数组按行分给各个机器,比如一共有8000行,8个机器,
则每个机器处理1000行。每个机器处理的时候只要把
前三行的前三列装到内存就行,每次处理一列后把前一列
删除,后面一列加入,直到所有列处理完毕。然后删除
前一行,加入新一行,继续处理
注意分数组的时候需要,两个机器直接有两行是共用的。

【在 f*****w 的大作中提到】
:
: ..
: cube,
: three
: (cannot
: n
: limited
: 3 有什么好方法吗?

r*******g
发帖数: 1335
17
Hi
第一题题目详细是什么,能说说吗

..
three
cannot

【在 T*****8 的大作中提到】
: 看大家都吵得不亦乐乎。作为一个深度潜水员和WSN,我就顶风而上,去年面试NYC
: Google
: 1. 在直方图里面找Biggest Square. 没有准备这个提,答的不好
: 2. 在一个N Dimensional 的正方形里面,Assume the top right point is (n,n,....
: n) and bottom left point is (0, 0, 0.... 0), given any point in the cube,
: find all the paths inside the cube to the (n, n,...n)
: 3. Given a matrix with values of 0 and 1, for any point, if there are three
: 1s around it, change its value to 1. Otherwise, mark its value to 0 (cannot
: recall exactly anymore). how to do it. Given a very big such matrix and n
: computer, how to do it efficiently. Assume each computer has very limited

n**s
发帖数: 2230
18
这道题:
http://www.informatik.uni-ulm.de/acm/Locals/2003/html/histogram
答案:
http://www.informatik.uni-ulm.de/acm/Locals/2003/html/judge.htm

【在 r*******g 的大作中提到】
: Hi
: 第一题题目详细是什么,能说说吗
:
: ..
: three
: cannot

w****r
发帖数: 245
19
多谢,how's the result?

..
three
cannot

【在 T*****8 的大作中提到】
: 看大家都吵得不亦乐乎。作为一个深度潜水员和WSN,我就顶风而上,去年面试NYC
: Google
: 1. 在直方图里面找Biggest Square. 没有准备这个提,答的不好
: 2. 在一个N Dimensional 的正方形里面,Assume the top right point is (n,n,....
: n) and bottom left point is (0, 0, 0.... 0), given any point in the cube,
: find all the paths inside the cube to the (n, n,...n)
: 3. Given a matrix with values of 0 and 1, for any point, if there are three
: 1s around it, change its value to 1. Otherwise, mark its value to 0 (cannot
: recall exactly anymore). how to do it. Given a very big such matrix and n
: computer, how to do it efficiently. Assume each computer has very limited

h*****n
发帖数: 1244
20
MARK
相关主题
求Leetcode OJ Maximal Rectangle的n^2解法这里有懂business intelligence development的同学吗?
面试题请教:一个矩阵,里面的值是0或1,找出最大子矩阵,此子矩阵的值全为1Amazon onsite面经
一道老题亚马逊 面经
进入JobHunting版参与讨论
Y**B
发帖数: 144
21
第三题啥想法阿?
怎么觉得根据题目的要求,这个变幻过程会一直进行下去,因为当考察第二个点的时候又把第
一个已经做好的点周围的值给变了?
谁能说说?
e****9
发帖数: 316
22
大家应该关注一下第三题,最近又被问到过.
s***n
发帖数: 116
23
能把第三题说的更清除一些么?
是按顺序做,先做第一行,再做第二行, .... ,对么?
前面的结果影响后面的,怎么实现多个机器并行呢?

【在 e****9 的大作中提到】
: 大家应该关注一下第三题,最近又被问到过.
a****8
发帖数: 2771
24
google 这么变态, 面试网络工程师 考算法?
d*********i
发帖数: 628
25
有关第二题,
当n=2
step = 1
n >2
step = 从n个空间中任选一个空间,然后就是step(n-1)
所以是n*step(n-1)
用递归,
这样可以么。。。
Y**B
发帖数: 144
26
第三题啥想法阿?
怎么觉得根据题目的要求,这个变幻过程会一直进行下去,因为当考察第二个点的时候又把第
一个已经做好的点周围的值给变了?
谁能说说?
e****9
发帖数: 316
27
大家应该关注一下第三题,最近又被问到过.
s***n
发帖数: 116
28
能把第三题说的更清除一些么?
是按顺序做,先做第一行,再做第二行, .... ,对么?
前面的结果影响后面的,怎么实现多个机器并行呢?

【在 e****9 的大作中提到】
: 大家应该关注一下第三题,最近又被问到过.
a****8
发帖数: 2771
29
google 这么变态, 面试网络工程师 考算法?
d*********i
发帖数: 628
30
有关第二题,
当n=2
step = 1
n >2
step = 从n个空间中任选一个空间,然后就是step(n-1)
所以是n*step(n-1)
用递归,
这样可以么。。。
相关主题
湾区SNS公司面经解一道 GOOGLE 面试题 ...
贡献个google电话面经问一个题
ooyala,apple,ebay面经白板代码,直方图包含的最大矩形面积
进入JobHunting版参与讨论
s******n
发帖数: 3946
31
第三题,最后所有的1会扩展成矩形样子吧,丁字形的1会被补上缺口变成矩形。从这个角度分析,是不是有比较好的办法?算法如下:
搜索纵或横相连的1,将其扩展为矩形(相连1的minx, miny, maxx, maxy)。然后如果两个矩形距离只间隔一列/行,则很可能合并两个矩形。重复上述步骤直到没法再扩展。
s********3
发帖数: 3476
32
现在是不是只要是用电脑的工程师,就考算法啊
n******n
发帖数: 49
33
能不能详细讲讲第二题的题意?n-dimensional为什么是正方形?
g*********e
发帖数: 14401
34
真难啊 跟别的公司的完全不在一个层次上
i**********e
发帖数: 1145
35
第三题如果没错的话,好像是 Game of Life.
http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
E*******0
发帖数: 465
36
第三题:
我觉得用一个 111 的mask,做卷积。
101
111
1 (共1页)
进入JobHunting版参与讨论
相关主题
Amazon onsite面经一个老面试题
亚马逊 面经明天onsite却发现好多还没掌握啊
湾区SNS公司面经最近大公司的面试题有不再偏难的趋势
贡献个google电话面经问问题,0/1 矩阵内最大1矩阵的问题
ooyala,apple,ebay面经刚刚onsite G家,发面经求祝福
解一道 GOOGLE 面试题 ...直方图盛水最大容量问题
问一个题直方图下最大矩形问题 o(n) 解对吗?
白板代码,直方图包含的最大矩形面积求Leetcode OJ Maximal Rectangle的n^2解法
相关话题的讨论汇总
话题: given话题: point话题: assume话题: cube话题: google