新鲜亚麻实验室126 Onsite

很多BQ题,但是基本都是常规问题,conflict resolution, when deadline can not be met, the most difficult project/task, etc.下面是代码题:
第一轮:
rotate matrix 90 degree, 乐扣原题,两次反转搞定
第二轮:
system design,设计一个Netflix或者Youtube这样的视频服务
第三轮:
code execution profiling:
execution logs长这样
, ,
Ex.
print, enter, 100
print, exit, 120 # print executed 20 time units
method1, enter, 140 # method1 started execution
method 2, enter, 160 # method2 started execution, at the same time method1 must stop and wait to resume, so method1 executed 20 time units so far
method2, exit, 180 # method2 exits in after it’'s excuted for 20 time units
method1, exit, 200 # method1 exits after another 20 time units after method2 exits above

最终的methods profiling 应该是这样
print: 20,
method1: 20 + 20 = 40
method2: 20
应该用一个stack可以搞定。
第四轮:
机器人在一个二维仓库里面找货物。
输入:[货物1, 货物2, 货物3,。。。]
输出:[找到货物1的路径,找到货物2的路径,找到货物3的路径]
BFS搞定。
BQ问题实在有点蛋疼,面试的一半时间要拿来扯这些,准备其实是比较简单的,把亚麻的LP看一遍,每条针对自己的经历对应一下应该就足够了。这次估计挂了,1,2,4基本OK,3到最后发现搞错了,但最后没有时间了,没有改完。接下来继续奋斗,年底之前一定要拿个好offer。

楼主在哪面的

湾区
。。。。。。。。。