由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 问一道FB design之后续
相关主题
问一道FB designC++: does post-increment always create a temp obj?
微软面试的小体会same birthday面试概率题
Google SET/TE openingGoogle phone interview
现在那个公司不是车间?两个微软中国鸟人lead
google search hint words data structureonsite后,HM说他们刚开始面试,是不是就是婉拒的意思
问一道GOOGLE有点像设计题的题问道 L家 的题
外行问一句,生统怎么这么多女性?现代计算机中的负数都是怎么表示的
再问个题听说Apple是末位淘汰制?
相关话题的讨论汇总
话题: friends话题: fb话题: simpler话题: post话题: privacy
进入JobHunting版参与讨论
1 (共1页)
n*********y
发帖数: 41
1
原帖在这里: http://www.mitbbs.com/article_t1/JobHunting/33285661_0_1.html
今天跟FB专门做privacy setting一美国大牛又聊到了这个问题,跟他讲了之前大家讨
论的“post to friends' timeline”的想法。他的回复是:
This can be done simpler, without any extra writes.
A hint: You are thinking about the problem as "How to check if C is a friend
of friends of A". But it is possible to rephrase the question in an other
way which will make the problem much simpler to solve.
大家怎么看?
PS: 再把题目贴一下
privacy setting. 说是每个user有一个friend
list, user可以发Post, 问如何设计Ouser friends的friends可见,时间复杂度O(N)
x***y
发帖数: 633
2
some sort of variation of TTL, originally 2, decrease by 1 in each step? But
it may need to dedup in some cases
n*********y
发帖数: 41
3
这个大牛只给了我思路,他和我的面试官是一个组的,我一问他就知道这个问题,大概
是他们私下讨论过的。所以他的hint应该是没有问题的。大家对这个思路有什么想法没
有?
r*v
发帖数: 12
4
check intersection of F(a) and F(c)?
1 (共1页)
进入JobHunting版参与讨论
相关主题
听说Apple是末位淘汰制?google search hint words data structure
求帮理解 LeetCode 上的Distinct Subsequences这道题究竟是什么意思???问一道GOOGLE有点像设计题的题
动态规划一定要有Optimal Substructure吗?外行问一句,生统怎么这么多女性?
福利贴 how to write a winning resume (Part 1)再问个题
问一道FB designC++: does post-increment always create a temp obj?
微软面试的小体会same birthday面试概率题
Google SET/TE openingGoogle phone interview
现在那个公司不是车间?两个微软中国鸟人lead
相关话题的讨论汇总
话题: friends话题: fb话题: simpler话题: post话题: privacy