avatar
老板问今天哪个生日# Joke - 肚皮舞运动
l*o
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++做
过东西,就是上课做作业了。
大家请帮我看看我答得是不是对的。估计不行了。
avatar
p*u
2
今天中午老板问今天哪个生日
想着祖国都到了9.18,国难日吧
原来是大师黎曼生日
avatar
G*0
3
Bless~
avatar
a*e
4
要是老中生在9.18 可惨了,一辈子不能过生日
avatar
d*g
5
nice
avatar
c*o
6
lol

【在 a****e 的大作中提到】
: 要是老中生在9.18 可惨了,一辈子不能过生日
avatar
s*t
7
你答得挺好的呀!应该有戏!

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

avatar
k*e
8
为啥?古人有言,国破山河在,城春草木生。山河尤在,草木即生。

【在 a****e 的大作中提到】
: 要是老中生在9.18 可惨了,一辈子不能过生日
avatar
p*z
9
楼主答的挺好的,谁面试会不紧张呀?
avatar
b*n
10
过农历啊
7.7也过农历

【在 a****e 的大作中提到】
: 要是老中生在9.18 可惨了,一辈子不能过生日
avatar
l*o
11
我觉得才九个题目,太少了,是不是已经对我已经不用费力了。

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

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。