由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 一些面经
相关主题
哪位大写给说说 何时用 merge sort, 何时用 quick sort, 何时 heap sort发道狗家的面经
Facebook interview 面经发个snapchat面经,挂的好可惜。
狗狗面经~G家onsite面经,求bless,顺便问问这情况能有戏吗
微软on-site面经(Intern)法轮功 面经
题都感觉做对了,面试的人也满意,为什么二面过后还是直接悲剧呢……顺便上P面经贴个简单的面经
onsite面经问个amazon面试题
Amazon On-site 最新面经“常数空间O(N),O(1)算法那个题目”的变形题目
glorywine的Amazon onsite面经请教一道题
相关话题的讨论汇总
话题: begin话题: end话题: array话题: counting话题: step
进入JobHunting版参与讨论
1 (共1页)
P*******7
发帖数: 55
1
已面试facebook, bloomberg, linkedin三家,都拿到offer。在本版收益很多,特来回
馈。
背景:12月-4月找faculty全军覆没,5月份开始准备工业界面试,花了近1个月时
间将本版1万
多帖子过了一遍,发现绝大部分面试题都不出其中,非常有用。这里补充一些自己遇见
的题目:
推荐“A Collection of Dice Problems”,面试facebook时遇到不少概率题,都不超出
这篇文
章的思路和难度。
Lock-free algorithms。推荐
http://www.ibm.com/developerworks/java/library/j-jtp04186/index.html
Bloomberg题目较容易,比如一个数组只有0,1两个数字,如何O(n)time, O(1)space排
序。但
同样思路的题目在facebook就变成一个数组有k个不同数字,假设k是常数,如何O(n)
time,
O(1)space排序,现场写出程序还是很麻烦。
另外小尾羊曾总结O(nlgn)的算法找出最长增长序列,面试中有遇到。
排序和binary sear
h******3
发帖数: 351
2
牛人, 真是苦尽甘来.
请问有本Debug书的电子版么?

【在 P*******7 的大作中提到】
: 已面试facebook, bloomberg, linkedin三家,都拿到offer。在本版收益很多,特来回
: 馈。
: 背景:12月-4月找faculty全军覆没,5月份开始准备工业界面试,花了近1个月时
: 间将本版1万
: 多帖子过了一遍,发现绝大部分面试题都不出其中,非常有用。这里补充一些自己遇见
: 的题目:
: 推荐“A Collection of Dice Problems”,面试facebook时遇到不少概率题,都不超出
: 这篇文
: 章的思路和难度。
: Lock-free algorithms。推荐

t********t
发帖数: 5415
3
神啊,横扫工业界啊。大大cong下
s***e
发帖数: 793
4
congs

【在 P*******7 的大作中提到】
: 已面试facebook, bloomberg, linkedin三家,都拿到offer。在本版收益很多,特来回
: 馈。
: 背景:12月-4月找faculty全军覆没,5月份开始准备工业界面试,花了近1个月时
: 间将本版1万
: 多帖子过了一遍,发现绝大部分面试题都不出其中,非常有用。这里补充一些自己遇见
: 的题目:
: 推荐“A Collection of Dice Problems”,面试facebook时遇到不少概率题,都不超出
: 这篇文
: 章的思路和难度。
: Lock-free algorithms。推荐

w****u
发帖数: 367
5
Cong!
I think I know you. :)
did u decide where to go?

【在 P*******7 的大作中提到】
: 已面试facebook, bloomberg, linkedin三家,都拿到offer。在本版收益很多,特来回
: 馈。
: 背景:12月-4月找faculty全军覆没,5月份开始准备工业界面试,花了近1个月时
: 间将本版1万
: 多帖子过了一遍,发现绝大部分面试题都不出其中,非常有用。这里补充一些自己遇见
: 的题目:
: 推荐“A Collection of Dice Problems”,面试facebook时遇到不少概率题,都不超出
: 这篇文
: 章的思路和难度。
: Lock-free algorithms。推荐

P*******7
发帖数: 55
6
5点你还不睡?

【在 w****u 的大作中提到】
: Cong!
: I think I know you. :)
: did u decide where to go?

P*******7
发帖数: 55
7
CSDN上有

【在 h******3 的大作中提到】
: 牛人, 真是苦尽甘来.
: 请问有本Debug书的电子版么?

P*******b
发帖数: 1001
8
牛人啊

【在 P*******7 的大作中提到】
: 已面试facebook, bloomberg, linkedin三家,都拿到offer。在本版收益很多,特来回
: 馈。
: 背景:12月-4月找faculty全军覆没,5月份开始准备工业界面试,花了近1个月时
: 间将本版1万
: 多帖子过了一遍,发现绝大部分面试题都不出其中,非常有用。这里补充一些自己遇见
: 的题目:
: 推荐“A Collection of Dice Problems”,面试facebook时遇到不少概率题,都不超出
: 这篇文
: 章的思路和难度。
: Lock-free algorithms。推荐

s******5
发帖数: 673
9

能稍微相信说一下面的都是什么position吗?
谢谢!

【在 P*******7 的大作中提到】
: 已面试facebook, bloomberg, linkedin三家,都拿到offer。在本版收益很多,特来回
: 馈。
: 背景:12月-4月找faculty全军覆没,5月份开始准备工业界面试,花了近1个月时
: 间将本版1万
: 多帖子过了一遍,发现绝大部分面试题都不出其中,非常有用。这里补充一些自己遇见
: 的题目:
: 推荐“A Collection of Dice Problems”,面试facebook时遇到不少概率题,都不超出
: 这篇文
: 章的思路和难度。
: Lock-free algorithms。推荐

v***n
发帖数: 5085
10
牛的不行了啊
相关主题
onsite面经发道狗家的面经
Amazon On-site 最新面经发个snapchat面经,挂的好可惜。
glorywine的Amazon onsite面经G家onsite面经,求bless,顺便问问这情况能有戏吗
进入JobHunting版参与讨论
n*******9
发帖数: 1017
11
I can only say niu XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
i**9
发帖数: 351
12
厉害,
c*****h
发帖数: 166
13
谢谢分享 很有用的心得
j*****g
发帖数: 223
14
For the sorting w/ k elements problem, it's easy to achieve O(n) time
complexity and O(1) space complexity by using counting/frequency sort:
step 0: initialize counting/freq array k, where k0 ... kn elements can be
indexed into 0 to n of the array. And array is initialized to be 0.
step 1: scan the array, and for each a[i] do k[a[i]]++;
step 2: rescan the array and put final sorted element back in.
count = 0;
for (i = 0; i < k; i++)
for (j = 0; j < k[i]; j++)
a[count++] = i;
(a bit simplified assumping k elements are in fact 0 to k - 1, but you get
the idea.
HOWEVER,
if k = 0 and 1 (your bloomberg problem), it can be done like this even more
simplified:
begin = 0; end = n - 1;
while (begin < end)
{
while (begin < end && a[begin] == 0) begin++;
if (begin < end) { swap (begin, end); end--; }
while (begin < end && a[end] == 1) end--;
if (begin < end) { swap (begin, end); begin++;}
}
this is bit like the partition step in the qsort. So it's really only ONE
linear scan, compared with frequency/counting sort's 2 linear scans.
WHICH prompts me to think is there any generic better way to solve th k-
element problem better than the counting/frequncy sorting algo?
hm.....
P*******7
发帖数: 55
15
The dutch national flag problem.

be

【在 j*****g 的大作中提到】
: For the sorting w/ k elements problem, it's easy to achieve O(n) time
: complexity and O(1) space complexity by using counting/frequency sort:
: step 0: initialize counting/freq array k, where k0 ... kn elements can be
: indexed into 0 to n of the array. And array is initialized to be 0.
: step 1: scan the array, and for each a[i] do k[a[i]]++;
: step 2: rescan the array and put final sorted element back in.
: count = 0;
: for (i = 0; i < k; i++)
: for (j = 0; j < k[i]; j++)
: a[count++] = i;

j*****g
发帖数: 223
16
靠!工作越久,脑子越僵。真理呀。。。
The same one scan partition algorithm run k - 1 times....//tears

【在 P*******7 的大作中提到】
: The dutch national flag problem.
:
: be

P*****o
发帖数: 294
17
厉害
1 (共1页)
进入JobHunting版参与讨论
相关主题
请教一道题题都感觉做对了,面试的人也满意,为什么二面过后还是直接悲剧呢……顺便上P面经
发苹果电面面经攒人品onsite面经
fb面经,附答案,求大牛指点Amazon On-site 最新面经
想请教一道面试题glorywine的Amazon onsite面经
哪位大写给说说 何时用 merge sort, 何时用 quick sort, 何时 heap sort发道狗家的面经
Facebook interview 面经发个snapchat面经,挂的好可惜。
狗狗面经~G家onsite面经,求bless,顺便问问这情况能有戏吗
微软on-site面经(Intern)法轮功 面经
相关话题的讨论汇总
话题: begin话题: end话题: array话题: counting话题: step