由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - fb两轮面试,据信两封
相关主题
another interview questionWrite a function to add two numbers, without using any arithmetic operator.
G公司电面两轮twitter 速度真快
刚投完简历两天就收到两封据信。。。这道题有没有答案呀?
打开邮箱,收到两封据信,很是沮丧。求祝福【内部推荐】operation solution manager,适合有CRM solution项目管理经验的童鞋
一道面试题请教几个面试问题
面试题里的bitwise operator攒人品,发几个面试题 C/C++
问一个数独的bitwise operationthread safe hash table
大虾给讲讲sudoku solver怎么用bitwise operationCareercup上看到的一个google的题目 下面有个人回复很好玩
相关话题的讨论汇总
话题: lock话题: implement话题: fb话题: using话题: locks
进入JobHunting版参与讨论
1 (共1页)
b*******r
发帖数: 14
1
回报社会,积攒人品了。
第一轮:
0. research overview
1. reverse linked list
2. how to implement a lock-free binary tree (WTF???)
2周后杯具第一次,由于内部认识人,argue了一下,所以安排了第二次面试。
第二轮:
0. research overview
1. how to implement adding two integers without using arithmetic operators.
(bit-wise operations)
2. how to implement a writer-reader-lock while you can only use mutex.
第一问很简单,稍微写了一会。第二问估计有经典回答,但是早忘了,于是现场凑合了
一个。对方估计心里暗自不爽,这是啥呀?“hold on”了好多次,想找bug,但是10分
钟也没找出来,于是就结束了。几周后,据信第二封,懒得argue了。
其实fb安排面我的人都不对口,和我research完全不是一回事,面试
r****o
发帖数: 1950
2
Cft,请问什么是lock-free tree啊?

.

【在 b*******r 的大作中提到】
: 回报社会,积攒人品了。
: 第一轮:
: 0. research overview
: 1. reverse linked list
: 2. how to implement a lock-free binary tree (WTF???)
: 2周后杯具第一次,由于内部认识人,argue了一下,所以安排了第二次面试。
: 第二轮:
: 0. research overview
: 1. how to implement adding two integers without using arithmetic operators.
: (bit-wise operations)

b*******r
发帖数: 14
3
In multi-threaded programming, we typically use locks to protect shared data
structures, say binary trees, preventing misbehaving concurrent accesses.
Using locks unfortunately have problems, like creating dead lock situations,
adding synchronization overhead, etc. A solution, which I know nothing
about, is to use lock-free data structures, which are designed for
concurrent access without the need for using locks. This is my vague
understanding though. Maybe he was looking for some other tricks
r****o
发帖数: 1950
4
多谢,不能用lock,又要支持concurrent accesses, 那怎么办比较好呢?

data
situations,

【在 b*******r 的大作中提到】
: In multi-threaded programming, we typically use locks to protect shared data
: structures, say binary trees, preventing misbehaving concurrent accesses.
: Using locks unfortunately have problems, like creating dead lock situations,
: adding synchronization overhead, etc. A solution, which I know nothing
: about, is to use lock-free data structures, which are designed for
: concurrent access without the need for using locks. This is my vague
: understanding though. Maybe he was looking for some other tricks

c*********n
发帖数: 1057
5
太高级了,只知道lock free的list,而且那东西那么复杂,居然电面就要说?

【在 r****o 的大作中提到】
: Cft,请问什么是lock-free tree啊?
:
: .

r****o
发帖数: 1950
6
lock free的list咋弄?

【在 c*********n 的大作中提到】
: 太高级了,只知道lock free的list,而且那东西那么复杂,居然电面就要说?
c*********n
发帖数: 1057
7
google下吧,很复杂,看懂代码就要花老半天更别说能作为面试题了,不过我就是个小
硕,比较菜

【在 r****o 的大作中提到】
: lock free的list咋弄?
b*******r
发帖数: 14
b*******r
发帖数: 14
9
不知道人家是看得起我,还是摆明要拒我...
我的面试题好像很非常规啊,第一轮那是啥题目啊。至少第二轮应该不差的,最后那人
还表扬一番,说我居然能现场想出来,比死记硬背要好。不知道到底咋回事,看来与fb
股票无缘。

【在 c*********n 的大作中提到】
: 太高级了,只知道lock free的list,而且那东西那么复杂,居然电面就要说?
m*****g
发帖数: 226
10
为何我觉得这些lock-free的东西比lock更危险?
那个cmu的里面有些写的比较容易懂,有些是错的扯淡
m*****g
发帖数: 226
11
那个bitwise的也有点扯淡了
除非经常搞那些的
看样子是接近底层和系统方面的吧

fb

【在 b*******r 的大作中提到】
: 不知道人家是看得起我,还是摆明要拒我...
: 我的面试题好像很非常规啊,第一轮那是啥题目啊。至少第二轮应该不差的,最后那人
: 还表扬一番,说我居然能现场想出来,比死记硬背要好。不知道到底咋回事,看来与fb
: 股票无缘。

l***i
发帖数: 1309
12
Looks fb is just not your company. But OP is surely a strong candidate.
Google is also strange that they didn't even give you an interview.
1 (共1页)
进入JobHunting版参与讨论
相关主题
Careercup上看到的一个google的题目 下面有个人回复很好玩一道面试题
凡是印度面试官的,电面都没过。。面试题里的bitwise operator
请问pure storage 的那道用spin lock and flags to implement mutex怎么做问一个数独的bitwise operation
question 2: o(1) euque and dequeue?大虾给讲讲sudoku solver怎么用bitwise operation
another interview questionWrite a function to add two numbers, without using any arithmetic operator.
G公司电面两轮twitter 速度真快
刚投完简历两天就收到两封据信。。。这道题有没有答案呀?
打开邮箱,收到两封据信,很是沮丧。求祝福【内部推荐】operation solution manager,适合有CRM solution项目管理经验的童鞋
相关话题的讨论汇总
话题: lock话题: implement话题: fb话题: using话题: locks