Redian新闻
>
Amex SPG卡送25K points 白送500刀现金 最佳酒店卡
avatar
Amex SPG卡送25K points 白送500刀现金 最佳酒店卡# Living
c*p
1
1. design and implement LRUCache
要求给出完整的实现代码,包括类的声明,变量的声明,初始化等的。几乎就是那种可以直接编
译运行的。
我在白板上写代码的时候,面试官(似乎是manager)在电脑上记录。由于我在写代码
的时候,位置安排的不好,写到后来没有地方了,我就把一部分写好的擦掉了。他似乎
很不高兴。所以,今后面试的XDJM要注意避免犯这样的错误。
2. The problem description is as follows:
You are given a deck containing 313 cards. While holding the deck:
1. Take the top card off the deck and set it on the table
2. Take the next card off the top and put it on the bottom of the deck
in your hand.
3. Continue steps 1 and 2 until all cards are on the table. This is a
round.
4. Pick up the deck from the table and repeat steps 1-3 until the deck
is in the original order.
Write a program to determine how many rounds it will take to put the
deck back into the original order."
他们希望你尽量用stl, boost来写。
这个题目看起来简单,直接queue, stack 模拟就行了。但是对于有些数字,比如题目
中的313, 运行时间就会很长。
比较好的解法是计算法:
一个是用最大公约数 lcm(),这个是最快的。
另外一个是求解n, 使得permutation matrix p的n次方是单位矩阵。
参见
http://www.gamedev.net/topic/589859-card-shuffle-problem/
和: http://www.careercup.com/question?id=7780673 (注意Eric Xu的解法)
注:这个组叫G e o T e am. 面的人有做data analysis的,有data mining的,也有编
程的。 不知道这个组究竟要找什么样的人。有个面试官希望你有object-oriented
design能力和线性代数的知识(比如,Eigenvalues)。如果要面这个组,最好提前复
习点这方面的知识。 这个组好像是新成立的,挺需要人的。
反馈比较快,三天就给结果了。。。 据了。
avatar
d*u
2
Starwood Preferred Guest信用卡 开卡25000 bonus points可在二手版换500刀
http://goo.gl/gNkdA
Earn 10,000 Starpoints with your first purchase and an additional 15,000
Starpoints when you spend $5,000 in 6 months
http://goo.gl/gNkdA
填完后会在60秒告诉你结果,这个卡是第一年免年费的,之后是$65, 可以在第二年关
闭避免被收取年费。即使第二年开始有年费,个人觉得还是一张值得长期使用的信用卡
。 消费一笔后两周内会把10000 point在你卡上,不会使用的人可以兑换$100
giftcard. 选择其他的 giftcard(Starbucks, Gap,Nordstrom)请选择Redeem in other
partners。请注意这一万点就可以换到最高5晚的category 1的酒店入住了。
下面的是非常关键的内容:
大家可以直接在二手版直接将spg 25000点数兑换成500美金。
请大家千万不要把点数兑换以上的250刀 amazon gift card,因为可以直接使用获得的
点数入住SPG酒店,Category 1: 以aloft为例,可以直接用2000points/晚 入住周末
房,或者以1200 points+25刀 在任意天入住。 Category 2: 以Four Points by
Sheraton为例,可以使用3000points/晚 入住周末房, 或者以1600 points +30刀在任
意天入住。
即使是消费第一笔后获得的10000points,也可以获得最高五晚的酒店入住。而且这类
酒店在中国区也是有效的。如果消费满5000刀,更可以获得另外的最高七晚的酒店入住。
avatar
c*8
3

可以直接编

【在 c***p 的大作中提到】
: 1. design and implement LRUCache
: 要求给出完整的实现代码,包括类的声明,变量的声明,初始化等的。几乎就是那种可以直接编
: 译运行的。
: 我在白板上写代码的时候,面试官(似乎是manager)在电脑上记录。由于我在写代码
: 的时候,位置安排的不好,写到后来没有地方了,我就把一部分写好的擦掉了。他似乎
: 很不高兴。所以,今后面试的XDJM要注意避免犯这样的错误。
: 2. The problem description is as follows:
: You are given a deck containing 313 cards. While holding the deck:
: 1. Take the top card off the deck and set it on the table
: 2. Take the next card off the top and put it on the bottom of the deck

avatar
p*2
4
不容易呀。
avatar
p*2
5
chump这么多dream company的面试,真是偶像呀。
avatar
h*l
6
真难啊

可以直接编

【在 c***p 的大作中提到】
: 1. design and implement LRUCache
: 要求给出完整的实现代码,包括类的声明,变量的声明,初始化等的。几乎就是那种可以直接编
: 译运行的。
: 我在白板上写代码的时候,面试官(似乎是manager)在电脑上记录。由于我在写代码
: 的时候,位置安排的不好,写到后来没有地方了,我就把一部分写好的擦掉了。他似乎
: 很不高兴。所以,今后面试的XDJM要注意避免犯这样的错误。
: 2. The problem description is as follows:
: You are given a deck containing 313 cards. While holding the deck:
: 1. Take the top card off the deck and set it on the table
: 2. Take the next card off the top and put it on the bottom of the deck

avatar
c*p
7
拿到这些公司的面试主要靠朋友, 朋友的朋友的推荐而已。和自己的能力没有太大关
系。
面试了几个公司,感觉下来他们要求比较高的能力是:
1. 给出问题,迅速给出ALGORITHM.
2. 有了ALGORITHM,要很快给出代码。
所以有机会,多练练TOPCODER, 特别是那些500分左右的题目,给自己一个时间限制(
比如30分钟)。看看能不能搞定。 一个在FB的朋友推荐的做法。 我现在基本上都要超
时:-(

【在 p*****2 的大作中提到】
: chump这么多dream company的面试,真是偶像呀。
avatar
t*h
8
我擦,偶像啊,能用java写code吗,面apple的时候
avatar
c*p
9
看组。有的组希望C/C++,有的组是JAVA

【在 t**********h 的大作中提到】
: 我擦,偶像啊,能用java写code吗,面apple的时候
avatar
p*2
10

真是牛人的圈子全是牛人呀
膜拜了。

【在 c***p 的大作中提到】
: 拿到这些公司的面试主要靠朋友, 朋友的朋友的推荐而已。和自己的能力没有太大关
: 系。
: 面试了几个公司,感觉下来他们要求比较高的能力是:
: 1. 给出问题,迅速给出ALGORITHM.
: 2. 有了ALGORITHM,要很快给出代码。
: 所以有机会,多练练TOPCODER, 特别是那些500分左右的题目,给自己一个时间限制(
: 比如30分钟)。看看能不能搞定。 一个在FB的朋友推荐的做法。 我现在基本上都要超
: 时:-(

avatar
f*0
11
不简单啊,膜拜
avatar
t*h
12
面的nyc的office吗?

【在 c***p 的大作中提到】
: 看组。有的组希望C/C++,有的组是JAVA
avatar
t*h
13
面的nyc的office吗?

【在 c***p 的大作中提到】
: 看组。有的组希望C/C++,有的组是JAVA
avatar
c*p
14
是湾区这边的office.

【在 t**********h 的大作中提到】
: 面的nyc的office吗?
avatar
l*a
15
苹果还有NYC office?

【在 t**********h 的大作中提到】
: 面的nyc的office吗?
avatar
g*x
17
Which team is it?
Those interview questions are challenging.

可以直接编

【在 c***p 的大作中提到】
: 1. design and implement LRUCache
: 要求给出完整的实现代码,包括类的声明,变量的声明,初始化等的。几乎就是那种可以直接编
: 译运行的。
: 我在白板上写代码的时候,面试官(似乎是manager)在电脑上记录。由于我在写代码
: 的时候,位置安排的不好,写到后来没有地方了,我就把一部分写好的擦掉了。他似乎
: 很不高兴。所以,今后面试的XDJM要注意避免犯这样的错误。
: 2. The problem description is as follows:
: You are given a deck containing 313 cards. While holding the deck:
: 1. Take the top card off the deck and set it on the table
: 2. Take the next card off the top and put it on the bottom of the deck

avatar
c*p
18
说是GEO TEAM. 面试的时候,他们没有说多少他们team究竟是做什么的,所以不清楚具
体情况。
apple保密还是很强的。

【在 g**x 的大作中提到】
: Which team is it?
: Those interview questions are challenging.
:
: 可以直接编

avatar
P*c
19
geo应该是做map的。Apple这方面能不能完全ditch google, 做不做的好应该挺关键的。

【在 c***p 的大作中提到】
: 说是GEO TEAM. 面试的时候,他们没有说多少他们team究竟是做什么的,所以不清楚具
: 体情况。
: apple保密还是很强的。

avatar
n*e
20
re
avatar
j*e
21
看来这个组是很烂的了。看现在ios6的map app多么奇葩就知道了。
avatar
j*e
22
牛人阿。我们连apple的门都摸不进去 呢。大牛都能去面试了。赞阿赞阿
avatar
O*d
23
我认识的一个小年青ABC进了Apple做iPhone的设计。 他学的是mechanical
engineering. MIT本科毕业的。他说进了Apple一个星期,就给发了3万美元的sign
in bonus. Apple挑人很挑剔,但他们一旦看上了你,就会大力引诱你接受他们的
offer。
avatar
n*s
24
zan!
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。