由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - BB电面
相关主题
问两个C++的问题谷歌 电面
发Amazon两次电面,攒人品求祝福大数乘法的另类解法
ebay search组面经,估计要挂原先预计半小时的电面只有11分钟
Amazon的一些电面问题Amazon 电面
bloomberg 电面面经b0x 面筋
Bloomberg电面面经附加问题Bloomberg 电面+onsite 。。已挂
帕兰提尔 电面面经菜鸟请教电面写code,能用哪些function,在线等
google电面小结,兼问onsite的准备再发一个fb实习电面并求google实习host match
相关话题的讨论汇总
话题: what话题: inherits话题: 题目话题: 数字话题: 编码
进入JobHunting版参与讨论
1 (共1页)
l*******o
发帖数: 791
1
刚放下电话,全是汗。
1. Empty class, what is the size? => 1
2. What the is inside empty class => four default functions
3. Copy ctor vs Assignment operator => one constructs object, the other one
assign object.
4. four classes, A,B,C,D. B and C both inherits A. D inherits B and C. What
is the problem here?
=> dead diamond. duplicate A in D. I said use virtual inheritance to avoid.
5. Anagram problem => sort it and put into the hash table to see it exits
already. If so, neglect it. If there any
way to be faster? 我支吾半天,他提示不用sort,给每个单词一个numerical
signature. 我说给a到z编号,1到26。算每
个单词的字母对应的编号和来计算是否是anangram,后来发现不能保证uniqueness,他
提示用multiplication,后来发
现这样做也不能保证unique。上帝突然照顾我,我突然想起小学的因数问题。我说给这
些数字重新编码,用prime数字编
码,这样每个词里面的数字对应的编码积一定是unique的。满手全是汗。
6.25马赛马问题,取前三。说实在的如果不是来本版看过题目,很难听懂这位印度面试
官的口语到底题目是什么样的。7
次,我给他推了一遍。
这就是我在38分钟内的所有面试题目。本人背景比较烂,cs硕士,从来没有用过C++做
过东西,就是上课做作业了。
大家请帮我看看我答得是不是对的。估计不行了。
G********0
发帖数: 1359
2
Bless~
d*********g
发帖数: 59
3
nice
s*******t
发帖数: 248
4
你答得挺好的呀!应该有戏!

one
What
avoid.

【在 l*******o 的大作中提到】
: 刚放下电话,全是汗。
: 1. Empty class, what is the size? => 1
: 2. What the is inside empty class => four default functions
: 3. Copy ctor vs Assignment operator => one constructs object, the other one
: assign object.
: 4. four classes, A,B,C,D. B and C both inherits A. D inherits B and C. What
: is the problem here?
: => dead diamond. duplicate A in D. I said use virtual inheritance to avoid.
: 5. Anagram problem => sort it and put into the hash table to see it exits
: already. If so, neglect it. If there any

p*z
发帖数: 44
5
楼主答的挺好的,谁面试会不紧张呀?
l*******o
发帖数: 791
6
我觉得才九个题目,太少了,是不是已经对我已经不用费力了。

【在 s*******t 的大作中提到】
: 你答得挺好的呀!应该有戏!
:
: one
: What
: avoid.

1 (共1页)
进入JobHunting版参与讨论
相关主题
再发一个fb实习电面并求google实习host matchbloomberg 电面面经
FB面经Bloomberg电面面经附加问题
最近一些面经帕兰提尔 电面面经
发面经攒人品google电面小结,兼问onsite的准备
问两个C++的问题谷歌 电面
发Amazon两次电面,攒人品求祝福大数乘法的另类解法
ebay search组面经,估计要挂原先预计半小时的电面只有11分钟
Amazon的一些电面问题Amazon 电面
相关话题的讨论汇总
话题: what话题: inherits话题: 题目话题: 数字话题: 编码