由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - amazon第三轮电面
相关主题
关于amazon的设计题讨论:关于一个design 问题
设计题目的本质问题Amazon First Round Phone Interview
Amazon的onsite OOD,求建议关于object oriented design的题目
Amazon电面面经Amazon 电面
A家onsite,已悲剧求一个面试题解答。。
昨天来亚麻面试的同胞问一道OO design题
今天G onsite, 包括吃饭的一共6人, 5白1烙印. 是福是祸?bloomberg面经
Amazon 电面经历请教template class怎么处理Inheritance问题(面试题)
相关话题的讨论汇总
话题: wood话题: chair话题: table话题: steel话题: interface
进入JobHunting版参与讨论
1 (共1页)
a****l
发帖数: 245
1
攒人品,写一下面经
Software Development Engineer
问候之后,首先问了一下我的research, 让我具体的阐述我提到过的算法
然后OOD的一道题,其实不难,但我感觉自己答得不好
have a furniture class, some child classes like table, chair, etc.
they want to extend the class hierarchy, as there are wood table, steel
table, wood chair, steel chair, and so on.
我首先给出class + interface的design:
furniture (table, chair, ...)
table ( woodtable extends table implements wood, steeltable extends table
implements steel)
chair ( similar as table)
然而interviewer立刻指出这样的话,如果要加fire, 或者和
r****1
发帖数: 2299
2
唉,找工作太折腾人了,都不容易。
g*******y
发帖数: 1930
3
第一个题用decorator怎么样?貌似decorator用来extend比较方便

【在 a****l 的大作中提到】
: 攒人品,写一下面经
: Software Development Engineer
: 问候之后,首先问了一下我的research, 让我具体的阐述我提到过的算法
: 然后OOD的一道题,其实不难,但我感觉自己答得不好
: have a furniture class, some child classes like table, chair, etc.
: they want to extend the class hierarchy, as there are wood table, steel
: table, wood chair, steel chair, and so on.
: 我首先给出class + interface的design:
: furniture (table, chair, ...)
: table ( woodtable extends table implements wood, steeltable extends table

y****n
发帖数: 192
4
1. bridge design pattern-> composition
3. connection pool -> dynamic increase or decrease pool size

【在 a****l 的大作中提到】
: 攒人品,写一下面经
: Software Development Engineer
: 问候之后,首先问了一下我的research, 让我具体的阐述我提到过的算法
: 然后OOD的一道题,其实不难,但我感觉自己答得不好
: have a furniture class, some child classes like table, chair, etc.
: they want to extend the class hierarchy, as there are wood table, steel
: table, wood chair, steel chair, and so on.
: 我首先给出class + interface的design:
: furniture (table, chair, ...)
: table ( woodtable extends table implements wood, steeltable extends table

r****o
发帖数: 1950
5
最后一题scale database怎么答比较好?

【在 a****l 的大作中提到】
: 攒人品,写一下面经
: Software Development Engineer
: 问候之后,首先问了一下我的research, 让我具体的阐述我提到过的算法
: 然后OOD的一道题,其实不难,但我感觉自己答得不好
: have a furniture class, some child classes like table, chair, etc.
: they want to extend the class hierarchy, as there are wood table, steel
: table, wood chair, steel chair, and so on.
: 我首先给出class + interface的design:
: furniture (table, chair, ...)
: table ( woodtable extends table implements wood, steeltable extends table

g*******y
发帖数: 1930
6
第一个为什么用bridge呢?
印象中bridge是用来separate implementation and interface hierarchy的,这题里
面貌似着重点不是imp和interface的关系?

【在 y****n 的大作中提到】
: 1. bridge design pattern-> composition
: 3. connection pool -> dynamic increase or decrease pool size

m*****f
发帖数: 1243
7
comfort一下, 这题都不好回答
w********p
发帖数: 948
8
额都电面了1个月了,恁不给结果。 强烈郁闷中。我的recruiter 的态度也不是很友善

table

【在 a****l 的大作中提到】
: 攒人品,写一下面经
: Software Development Engineer
: 问候之后,首先问了一下我的research, 让我具体的阐述我提到过的算法
: 然后OOD的一道题,其实不难,但我感觉自己答得不好
: have a furniture class, some child classes like table, chair, etc.
: they want to extend the class hierarchy, as there are wood table, steel
: table, wood chair, steel chair, and so on.
: 我首先给出class + interface的design:
: furniture (table, chair, ...)
: table ( woodtable extends table implements wood, steeltable extends table

r*********e
发帖数: 29495
9
三轮,耍人吗

【在 a****l 的大作中提到】
: 攒人品,写一下面经
: Software Development Engineer
: 问候之后,首先问了一下我的research, 让我具体的阐述我提到过的算法
: 然后OOD的一道题,其实不难,但我感觉自己答得不好
: have a furniture class, some child classes like table, chair, etc.
: they want to extend the class hierarchy, as there are wood table, steel
: table, wood chair, steel chair, and so on.
: 我首先给出class + interface的design:
: furniture (table, chair, ...)
: table ( woodtable extends table implements wood, steeltable extends table

m******9
发帖数: 968
10
3轮了,不容易呀
amazon可能比较难进吧,听到不止一个面了好多轮最好被拒的例子来
相关主题
昨天来亚麻面试的同胞讨论:关于一个design 问题
今天G onsite, 包括吃饭的一共6人, 5白1烙印. 是福是祸?Amazon First Round Phone Interview
Amazon 电面经历关于object oriented design的题目
进入JobHunting版参与讨论
s*********e
发帖数: 27
11
For the OOD question, how about strategy pattern?
Make wood a interface and create some implementations for it specific
functions. Same here for steel.
At runtime you can inject wood implementation to make your table with wood
functions. Or inject a wood implementation and a steel implentation to make
a woodsteeltable.
a****n
发帖数: 1887
12
interfaces:
material
/\
/ \
wood steel ......
furniture
/\
/ \
table chair ......
concrete furniture
wood chair: public wood, public chair...
steel chair: public steel, public chair...
a****n
发帖数: 1887
13
这个不是strategy pattern. 就是简单的多个interfaces的继承关系

make

【在 s*********e 的大作中提到】
: For the OOD question, how about strategy pattern?
: Make wood a interface and create some implementations for it specific
: functions. Same here for steel.
: At runtime you can inject wood implementation to make your table with wood
: functions. Or inject a wood implementation and a steel implentation to make
: a woodsteeltable.

J*****o
发帖数: 247
14
其实Amazon里面的工作非常初级,大都属于软件维护的范围,是计算机工作中最没技术
含量的。基本上接受中学教育的人都完全可以Handle。搞不清楚他们的面试搞那么多明
堂干嘛,估计纯粹是为了满足面试者的虚荣心罢了。呵呵。
i**9
发帖数: 351
15
就跟中国大学生,研究生当城管还要竞争一样,市场上供需极不平衡,没事干折腾人呗

【在 J*****o 的大作中提到】
: 其实Amazon里面的工作非常初级,大都属于软件维护的范围,是计算机工作中最没技术
: 含量的。基本上接受中学教育的人都完全可以Handle。搞不清楚他们的面试搞那么多明
: 堂干嘛,估计纯粹是为了满足面试者的虚荣心罢了。呵呵。

s*********w
发帖数: 151
16
I don't think so....

【在 J*****o 的大作中提到】
: 其实Amazon里面的工作非常初级,大都属于软件维护的范围,是计算机工作中最没技术
: 含量的。基本上接受中学教育的人都完全可以Handle。搞不清楚他们的面试搞那么多明
: 堂干嘛,估计纯粹是为了满足面试者的虚荣心罢了。呵呵。

m*******e
发帖数: 1886
17
这个,这个,有点那个了吧。。。
呵呵

【在 J*****o 的大作中提到】
: 其实Amazon里面的工作非常初级,大都属于软件维护的范围,是计算机工作中最没技术
: 含量的。基本上接受中学教育的人都完全可以Handle。搞不清楚他们的面试搞那么多明
: 堂干嘛,估计纯粹是为了满足面试者的虚荣心罢了。呵呵。

m*******e
发帖数: 1886
18
找amazon工作的,尽量找人refer吧。。
s***t
发帖数: 73
19
据说Amazon很忙,压力比较大?
看网上的review说Amazon里面小组分的很细很细,有时候工作比较混乱,不知道是不是
这样子。

【在 m*******e 的大作中提到】
: 这个,这个,有点那个了吧。。。
: 呵呵

s***t
发帖数: 73
20
最怕这种design pattern的题目了。不过我面的时候还好,是design一个parking lot。

【在 a****l 的大作中提到】
: 攒人品,写一下面经
: Software Development Engineer
: 问候之后,首先问了一下我的research, 让我具体的阐述我提到过的算法
: 然后OOD的一道题,其实不难,但我感觉自己答得不好
: have a furniture class, some child classes like table, chair, etc.
: they want to extend the class hierarchy, as there are wood table, steel
: table, wood chair, steel chair, and so on.
: 我首先给出class + interface的design:
: furniture (table, chair, ...)
: table ( woodtable extends table implements wood, steeltable extends table

相关主题
Amazon 电面bloomberg面经
求一个面试题解答。。请教template class怎么处理Inheritance问题(面试题)
问一道OO design题Phone Interview面经
进入JobHunting版参与讨论
x******h
发帖数: 13678
21
向我从来都不问难题,面试完还给某版面捐钱挽回rp

【在 J*****o 的大作中提到】
: 其实Amazon里面的工作非常初级,大都属于软件维护的范围,是计算机工作中最没技术
: 含量的。基本上接受中学教育的人都完全可以Handle。搞不清楚他们的面试搞那么多明
: 堂干嘛,估计纯粹是为了满足面试者的虚荣心罢了。呵呵。

w*********r
发帖数: 85
22
俺也被AMAZON电电三次,说要被ON-SITE,最后就说说了事,没了下文.
这些大公司现在面世越来越刁钻了... ai....
w*********r
发帖数: 85
23
俺也被AMAZON电电三次,说要被ON-SITE,最后就说说了事,没了下文.
这些大公司现在面世越来越刁钻了... ai....
m*******e
发帖数: 1886
24
有on call制度,在sales做有点累,特别是这个holiday season,payments还好的,每
天有活,
但是也不至于要经常加班。。

【在 s***t 的大作中提到】
: 据说Amazon很忙,压力比较大?
: 看网上的review说Amazon里面小组分的很细很细,有时候工作比较混乱,不知道是不是
: 这样子。

s***t
发帖数: 73
25
多谢回复。
那SDE的工作怎么样呢?

【在 m*******e 的大作中提到】
: 有on call制度,在sales做有点累,特别是这个holiday season,payments还好的,每
: 天有活,
: 但是也不至于要经常加班。。

Z*****Z
发帖数: 723
26
总结一下问题,家具有chair、table。。。
材料有wood、steel。。。
不同材料的家具在着火的时候表现不同,为了避免重复代码,这里搞个什么pattern合适
呢?

【在 a****l 的大作中提到】
: 攒人品,写一下面经
: Software Development Engineer
: 问候之后,首先问了一下我的research, 让我具体的阐述我提到过的算法
: 然后OOD的一道题,其实不难,但我感觉自己答得不好
: have a furniture class, some child classes like table, chair, etc.
: they want to extend the class hierarchy, as there are wood table, steel
: table, wood chair, steel chair, and so on.
: 我首先给出class + interface的design:
: furniture (table, chair, ...)
: table ( woodtable extends table implements wood, steeltable extends table

s********l
发帖数: 998
27
我觉得是不是要用到 那个设计题
virtual inheritance 啊~
Z*****Z
发帖数: 723
28
这个是multiple inheritance的一种吗?如果是,也就是说一定要multiple inheritan
ce才能解决这个问题?

【在 s********l 的大作中提到】
: 我觉得是不是要用到 那个设计题
: virtual inheritance 啊~

s********l
发帖数: 998
29
不知道你怎么定义multi inheritance
反正 是个多层的inheritance
比如 iostream 是继承了ostream & istream
ostream & istream是 virtual inheritance ios

inheritan

【在 Z*****Z 的大作中提到】
: 这个是multiple inheritance的一种吗?如果是,也就是说一定要multiple inheritan
: ce才能解决这个问题?

Z*****Z
发帖数: 723
30
呵呵,我不会C++,只会java,所以没有MI的概念。同时,java里面可能没有你提到的这
种virtual inheritance,怎么办呢?

【在 s********l 的大作中提到】
: 不知道你怎么定义multi inheritance
: 反正 是个多层的inheritance
: 比如 iostream 是继承了ostream & istream
: ostream & istream是 virtual inheritance ios
:
: inheritan

相关主题
C++ Q96: function inheritance设计题目的本质问题
question 2: o(1) euque and dequeue?Amazon的onsite OOD,求建议
关于amazon的设计题Amazon电面面经
进入JobHunting版参与讨论
s********l
发帖数: 998
31
我不会java 只会c/c++ 。。。
的这
r****c
发帖数: 2585
32
decorator

合适

【在 Z*****Z 的大作中提到】
: 总结一下问题,家具有chair、table。。。
: 材料有wood、steel。。。
: 不同材料的家具在着火的时候表现不同,为了避免重复代码,这里搞个什么pattern合适
: 呢?

h**k
发帖数: 3368
33
interface 啊,

的这

【在 Z*****Z 的大作中提到】
: 呵呵,我不会C++,只会java,所以没有MI的概念。同时,java里面可能没有你提到的这
: 种virtual inheritance,怎么办呢?

Z*****Z
发帖数: 723
34
也就是说把wood和steel当做decorator去decorate各种furniture吗?这样可以实现woo
dsteeltable么?

【在 r****c 的大作中提到】
: decorator
:
: 合适

Z*****Z
发帖数: 723
35
interface不能有实现的吧?对于wood和steel在onfire时候不同的behavior的代码,你
放在哪儿呢?

【在 h**k 的大作中提到】
: interface 啊,
:
: 的这

h**k
发帖数: 3368
36
第1题只要你说需要定义woodtable和steeltable两个class,你肯定挂。

【在 a****l 的大作中提到】
: 攒人品,写一下面经
: Software Development Engineer
: 问候之后,首先问了一下我的research, 让我具体的阐述我提到过的算法
: 然后OOD的一道题,其实不难,但我感觉自己答得不好
: have a furniture class, some child classes like table, chair, etc.
: they want to extend the class hierarchy, as there are wood table, steel
: table, wood chair, steel chair, and so on.
: 我首先给出class + interface的design:
: furniture (table, chair, ...)
: table ( woodtable extends table implements wood, steeltable extends table

Z*****Z
发帖数: 723
37
有点不懂。
你的意思是:把table、chair、wood、steel全做成interface,然后再组合?

【在 h**k 的大作中提到】
: 第1题只要你说需要定义woodtable和steeltable两个class,你肯定挂。
h**k
发帖数: 3368
38
定义material作为家具类的一个属性

【在 Z*****Z 的大作中提到】
: 有点不懂。
: 你的意思是:把table、chair、wood、steel全做成interface,然后再组合?

Z*****Z
发帖数: 723
39
那个属性应该是个非空集合,对不?因为可能有多种材料。
可是根据不同材料的onfire的behavior的代码应该放在哪儿呢?
放在父类里面的话,如果有新加的材料,岂不需要修改父类代码?

【在 h**k 的大作中提到】
: 定义material作为家具类的一个属性
h**k
发帖数: 3368
40
Material本身是一个class,各种材料是它的子类。
对于家具类,它的一个member的类型是Material

【在 Z*****Z 的大作中提到】
: 那个属性应该是个非空集合,对不?因为可能有多种材料。
: 可是根据不同材料的onfire的behavior的代码应该放在哪儿呢?
: 放在父类里面的话,如果有新加的材料,岂不需要修改父类代码?

1 (共1页)
进入JobHunting版参与讨论
相关主题
请教template class怎么处理Inheritance问题(面试题)A家onsite,已悲剧
Phone Interview面经昨天来亚麻面试的同胞
C++ Q96: function inheritance今天G onsite, 包括吃饭的一共6人, 5白1烙印. 是福是祸?
question 2: o(1) euque and dequeue?Amazon 电面经历
关于amazon的设计题讨论:关于一个design 问题
设计题目的本质问题Amazon First Round Phone Interview
Amazon的onsite OOD,求建议关于object oriented design的题目
Amazon电面面经Amazon 电面
相关话题的讨论汇总
话题: wood话题: chair话题: table话题: steel话题: interface