boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - facebook面筋
相关主题
find median for k sorted arrays
今天G家电面的一道题
说一个我自己用的题吧
其实我很想知道, 多少软工能45分钟内把quicksort写下来
最长递增子array的算法
问个算法题5
分享Imo电面题
请教一题,关于interval
为何找不到很多apple的面筋
【update】cs小硕 下周g onsite 求祝福
相关话题的讨论汇总
话题: remaining话题: array话题: traversal话题: char话题: node
进入JobHunting版参与讨论
1 (共1页)
p********i
发帖数: 17
1
在版上潜水了很久,真的收益很多,也把自己面试facebook的经验和大家分享一下。
电话面试
1. 因为面试我的人花了很多时间介绍他在做的项目和问我的movitation所以只问了一
道题,LIS的变种。
Give an array, find the minimum of elements to delete so that the remaining
array is sorted.
2.
1) How to find the middle node of a binary search tree?
我给了两个解法,第一个把in order traversal的所有node都记下来然后返回array的
median,第二个办法是现traversal找出节点个数然后再in order traversal返回第n/2
个node。他让我比较了两个算法的优劣然后随便挑一个写出来。我现在也不知道这个题
有没有更好的解法。
2) implement char *remove_badchars(char string[], char bad_chars[]) in place。
分析time
h**k
发帖数: 3368
2
good luck. thanks for sharing.
f*******r
发帖数: 1086
3
祝好运的!

remaining
/2

【在 p********i 的大作中提到】
: 在版上潜水了很久,真的收益很多,也把自己面试facebook的经验和大家分享一下。
: 电话面试
: 1. 因为面试我的人花了很多时间介绍他在做的项目和问我的movitation所以只问了一
: 道题,LIS的变种。
: Give an array, find the minimum of elements to delete so that the remaining
: array is sorted.
: 2.
: 1) How to find the middle node of a binary search tree?
: 我给了两个解法,第一个把in order traversal的所有node都记下来然后返回array的
: median,第二个办法是现traversal找出节点个数然后再in order traversal返回第n/2

r****c
发帖数: 2585
4
有没有offer
good luck

remaining
/2

【在 p********i 的大作中提到】
: 在版上潜水了很久,真的收益很多,也把自己面试facebook的经验和大家分享一下。
: 电话面试
: 1. 因为面试我的人花了很多时间介绍他在做的项目和问我的movitation所以只问了一
: 道题,LIS的变种。
: Give an array, find the minimum of elements to delete so that the remaining
: array is sorted.
: 2.
: 1) How to find the middle node of a binary search tree?
: 我给了两个解法,第一个把in order traversal的所有node都记下来然后返回array的
: median,第二个办法是现traversal找出节点个数然后再in order traversal返回第n/2

f*********5
发帖数: 576
5
根本没认真看帖子。。

【在 r****c 的大作中提到】
: 有没有offer
: good luck
:
: remaining
: /2

Z*****Z
发帖数: 723
6
congrats!
这种判断程序对不对的题目应该怎么答呢?

remaining
/2

【在 p********i 的大作中提到】
: 在版上潜水了很久,真的收益很多,也把自己面试facebook的经验和大家分享一下。
: 电话面试
: 1. 因为面试我的人花了很多时间介绍他在做的项目和问我的movitation所以只问了一
: 道题,LIS的变种。
: Give an array, find the minimum of elements to delete so that the remaining
: array is sorted.
: 2.
: 1) How to find the middle node of a binary search tree?
: 我给了两个解法,第一个把in order traversal的所有node都记下来然后返回array的
: median,第二个办法是现traversal找出节点个数然后再in order traversal返回第n/2

f*********5
发帖数: 576
7
我觉得等价于问你如何测试把

【在 Z*****Z 的大作中提到】
: congrats!
: 这种判断程序对不对的题目应该怎么答呢?
:
: remaining
: /2

c******f
发帖数: 2144
8
good luck
s********e
发帖数: 83
9
请问Give an array, find the minimum of elements to delete so that the
remaining array is sorted.怎么回答?
谢谢

remaining
/2

【在 p********i 的大作中提到】
: 在版上潜水了很久,真的收益很多,也把自己面试facebook的经验和大家分享一下。
: 电话面试
: 1. 因为面试我的人花了很多时间介绍他在做的项目和问我的movitation所以只问了一
: 道题,LIS的变种。
: Give an array, find the minimum of elements to delete so that the remaining
: array is sorted.
: 2.
: 1) How to find the middle node of a binary search tree?
: 我给了两个解法,第一个把in order traversal的所有node都记下来然后返回array的
: median,第二个办法是现traversal找出节点个数然后再in order traversal返回第n/2

r****o
发帖数: 1950
10
这里可以用DP吧。

【在 s********e 的大作中提到】
: 请问Give an array, find the minimum of elements to delete so that the
: remaining array is sorted.怎么回答?
: 谢谢
:
: remaining
: /2

p********i
发帖数: 17
11
可以看看programming pearls的column 4,或者参考CLRS教科书上证明算法正确性的模
板。

【在 Z*****Z 的大作中提到】
: congrats!
: 这种判断程序对不对的题目应该怎么答呢?
:
: remaining
: /2

p********i
发帖数: 17
12
这个就是LIS(Longest Increasing Subsequnce)的变种。

【在 s********e 的大作中提到】
: 请问Give an array, find the minimum of elements to delete so that the
: remaining array is sorted.怎么回答?
: 谢谢
:
: remaining
: /2

1 (共1页)
进入JobHunting版参与讨论
相关主题
【update】cs小硕 下周g onsite 求祝福
A onsite 4轮面筋
发一个Yahoo intern面筋,求bless
分享一些自己面过的面筋
说说某著名软件公司的onsite面试
CS intern面试经验
请教一个binary search tree和heap的问题。
一道微软面试题
问几个有关Binary tree的题
一朋友被Google的电面干掉了 (转载)
相关话题的讨论汇总
话题: remaining话题: array话题: traversal话题: char话题: node