Redian新闻
>
Re: 华籍程序员触电成植物人 排期将他唤醒 (转载)
avatar
Re: 华籍程序员触电成植物人 排期将他唤醒 (转载)# Joke - 肚皮舞运动
c*e
1
【材料】約25個分
キャベツ 200g
塩 小さじ1/2
玉ねぎ 100g
ニラ 20g
生姜 10g
にんにく 3つ
干し椎茸 10g
中力粉 200g
お湯 110g(お湯の量は調整してください)
醤油 大さじ2
酢 大さじ1
ごま油 小さじ1
炒りごま 大さじ1
万能ネギ 10g
豆板醤 小さじ1(お好みで)
甜麺醤 小さじ1(お好みで)
https://www.youtube.com/watch?v=14iSS-5UFgw
avatar
c*e
2
如何设计一个停车场。问该用什么数据结构。我想了一下,我觉得要是用vector话,找
一个空位就成了线性的。要是用stack或者 queue,那就只能从一个具体的位置停车,
一般的停车场根本不是这样子。
最后我说用 linked list,因为linked list可以把空位加在头上。找空位就简单了。
但是如果来了一辆车停在头的位置,不就有难找空位了?还是说停车只能停在特定位置?
avatar
p*e
3
voigtlander for nikon 20mm
形变是怎么样的?
是简单形变还是复杂波浪型形变?
avatar
w*r
4
【 以下文字转载自 EB23 讨论区 】
发信人: walkwater (on), 信区: EB23
标 题: Re: 华籍程序员触电成植物人 排期将他唤醒
发信站: BBS 未名空间站 (Thu Dec 15 13:21:23 2011, 美东)
Florida一位身患绝症的程序员在得知病情后,茶饭不思,也无心工作和生活。 一个星
期前,奇迹出现了,他的排期到了。听到这个消息,他顿时觉得一股电流窜过全身,感
觉非常好。经检查肿瘤消失了,以前困扰他的程序bug也一下子解决了。他想对移民局
说一声:谢谢!
avatar
m*n
5
一个数组就行了吧。。 这和打游戏一样,系统肯定有整个停车场的信息
每个车位包含
class ParkingLot {
Position pos;
Type type;
Status status;
}
如果是2d的平面,直接一个matrix, 每一个空格存一个状态信息就行了。
avatar
c*y
6
你看你,不好好攒rp,都没人回答你的问题咯。
算了,我告诉你吧,是波浪形形变。
http://www.fredmiranda.com/forum/topic/830416/1#7743898

【在 p********e 的大作中提到】
: voigtlander for nikon 20mm
: 形变是怎么样的?
: 是简单形变还是复杂波浪型形变?

avatar
z*c
7
K! 效果怎么会比唱红歌还好。
avatar
g*e
8
I think an array / multiple dimension array is fine.
avatar
c*e
10
真不知道面试人想问啥。
我说了单向链表,他也没说啥。
avatar
m*n
12
这题关键不在数据结构吧,呵呵。。

【在 c**********e 的大作中提到】
: 真不知道面试人想问啥。
: 我说了单向链表,他也没说啥。

avatar
p*e
13
这么多可以F卡口的镜头
居然都是波浪形形变
现在发现只有1424是简单形变。。。
唉。。我中了kenrockwell的毒了
现在就求一个形变简单容易纠正的广角头
20 18 16 变焦都可以 放全副/胶片
居然死贵的18也是波浪形变。。。。

你看你,不好好攒rp,都没人回答你的问题咯。
算了,我告诉你吧,是波浪形形变。
http://www.fredmiranda.com/forum/topic/830416/1#7743898

【在 c********y 的大作中提到】
: 你看你,不好好攒rp,都没人回答你的问题咯。
: 算了,我告诉你吧,是波浪形形变。
: http://www.fredmiranda.com/forum/topic/830416/1#7743898

avatar
c*e
14
在电话里面的。肯定是数据结构。但不知道那个老美的面试官心里的答案是什么。

【在 m***n 的大作中提到】
: 这题关键不在数据结构吧,呵呵。。
avatar
b*t
16
heap

【在 c**********e 的大作中提到】
: 在电话里面的。肯定是数据结构。但不知道那个老美的面试官心里的答案是什么。
avatar
d*e
18
可能跟你直接问的问题没太大关系,但相关,都是系parking lot..
http://mitbbs.com/article1/JobHunting/31957145_3_0.html

置?

【在 c**********e 的大作中提到】
: 如何设计一个停车场。问该用什么数据结构。我想了一下,我觉得要是用vector话,找
: 一个空位就成了线性的。要是用stack或者 queue,那就只能从一个具体的位置停车,
: 一般的停车场根本不是这样子。
: 最后我说用 linked list,因为linked list可以把空位加在头上。找空位就简单了。
: 但是如果来了一辆车停在头的位置,不就有难找空位了?还是说停车只能停在特定位置?

avatar
d*u
19
maintain 一个linkedlist只放空车位,来一个车,remove第一个空车位,给这个车
走一个车,把对应的车位放到链表末尾。
avatar
s*n
20
A家的题吧。。。考的不是数据结构。
avatar
e*l
21
这是考OO。
avatar
n*0
22
OO经典题了
ParkingLot is a class.
ParkingSpace is a class.
ParkingSpace has an Entrance.
Entrance has a location or more specifically, distance from Entrance.
ParkingLotSign is a class.
ParkingLot has a ParkingLotSign.
ParkingLot has a finite number of ParkingSpaces.
HandicappedParkingSpace is a subclass of ParkingSpace.
RegularParkingSpace is a subclass of ParkingSpace.
CompactParkingSpace is a subclass of ParkingSpace.
ParkingLot keeps array of ParkingSpaces, and a separate array of vacant
ParkingSpaces in order of distance from its Entrance.
ParkingLotSign can be told to display "full", or "empty", or "blank/normal/
partially occupied" by calling .Full(), .Empty() or .Normal()
Parker is a class.
Parker can Park().
Parker can Unpark().
Valet is a subclass of Parker that can call ParkingLot.
FindVacantSpaceNearestEntrance(), which returns a ParkingSpace.
Parker has a ParkingSpace.
Parker can call ParkingSpace.Take() and ParkingSpace.Vacate().
Parker calls Entrance.Entering() and Entrance.Exiting() and ParkingSpace
notifies ParkingLot when it is taken or vacated so that ParkingLot can
determine if it is full or not. If it is newly full or newly empty or newly
not full or empty, it should change the ParkingLotSign.Full() or
ParkingLotSign.Empty() or ParkingLotSign.Normal().
HandicappedParker could be a subclass of Parker and CompactParker a subclass
of Parker and RegularParker a subclass of Parker. (might be overkill,
actually.)
avatar
c*p
23
mark

【在 n**0 的大作中提到】
: OO经典题了
: ParkingLot is a class.
: ParkingSpace is a class.
: ParkingSpace has an Entrance.
: Entrance has a location or more specifically, distance from Entrance.
: ParkingLotSign is a class.
: ParkingLot has a ParkingLotSign.
: ParkingLot has a finite number of ParkingSpaces.
: HandicappedParkingSpace is a subclass of ParkingSpace.
: RegularParkingSpace is a subclass of ParkingSpace.

avatar
M*r
25

这个link打不开了,请问还有什么办法可以看到内容?

【在 d**e 的大作中提到】
: 可能跟你直接问的问题没太大关系,但相关,都是系parking lot..
: http://mitbbs.com/article1/JobHunting/31957145_3_0.html
:
: 置?

avatar
s*h
26
这题的关键不在使用什么数据结构,而是让你设计多态
avatar
p*2
27

请问能不能ZKSS为什么重点是多态?

【在 s*****h 的大作中提到】
: 这题的关键不在使用什么数据结构,而是让你设计多态
avatar
p*2
28

能不能展开说说为什么这么设计?
ParkingSpace has an Entrance.
Entrance has a location or more specifically, distance from Entrance.
ParkingLotSign is a class.
ParkingLot has a ParkingLotSign.
HandicappedParkingSpace is a subclass of ParkingSpace.
RegularParkingSpace is a subclass of ParkingSpace.
CompactParkingSpace is a subclass of ParkingSpace.
ParkingLot keeps array of ParkingSpaces, and a separate array of vacant
ParkingSpaces in order of distance from its Entrance.

【在 n**0 的大作中提到】
: OO经典题了
: ParkingLot is a class.
: ParkingSpace is a class.
: ParkingSpace has an Entrance.
: Entrance has a location or more specifically, distance from Entrance.
: ParkingLotSign is a class.
: ParkingLot has a ParkingLotSign.
: ParkingLot has a finite number of ParkingSpaces.
: HandicappedParkingSpace is a subclass of ParkingSpace.
: RegularParkingSpace is a subclass of ParkingSpace.

avatar
s*h
29
这是A家的老题了啊..
关键在于处理不同车辆,比如卡车,小轿车,三轮车等等..所以只要答出多态设计就可
以了。
还请大牛多多指点!

【在 p*****2 的大作中提到】
:
: 能不能展开说说为什么这么设计?
: ParkingSpace has an Entrance.
: Entrance has a location or more specifically, distance from Entrance.
: ParkingLotSign is a class.
: ParkingLot has a ParkingLotSign.
: HandicappedParkingSpace is a subclass of ParkingSpace.
: RegularParkingSpace is a subclass of ParkingSpace.
: CompactParkingSpace is a subclass of ParkingSpace.
: ParkingLot keeps array of ParkingSpaces, and a separate array of vacant

avatar
p*2
30

处理这些为什么要用多态呢?

【在 s*****h 的大作中提到】
: 这是A家的老题了啊..
: 关键在于处理不同车辆,比如卡车,小轿车,三轮车等等..所以只要答出多态设计就可
: 以了。
: 还请大牛多多指点!

avatar
E*U
31
Sorry for my ignorance, but what is "多态"?
avatar
i*h
32
polymorphism?
so you can use one interface instead of different ones for different types
of vehicles
So from outside the module, the interface does not need to change even you
may change types of vehicles. Of course, in reality that's more complicated
may not be ideal.

【在 p*****2 的大作中提到】
:
: 处理这些为什么要用多态呢?

avatar
p*2
33

complicated
for different types of vehicles 为什么要用interface?

【在 i***h 的大作中提到】
: polymorphism?
: so you can use one interface instead of different ones for different types
: of vehicles
: So from outside the module, the interface does not need to change even you
: may change types of vehicles. Of course, in reality that's more complicated
: may not be ideal.

avatar
i*t
34
是不是不同的车型 对应不同的具体的子类
每个车型 收费啊 位置 可能是不同的
用户调用的时候 他直接调用 parking(); 不用担心具体车型?
这么个意思?

【在 p*****2 的大作中提到】
:
: complicated
: for different types of vehicles 为什么要用interface?

avatar
i*h
35
yeah

【在 i******t 的大作中提到】
: 是不是不同的车型 对应不同的具体的子类
: 每个车型 收费啊 位置 可能是不同的
: 用户调用的时候 他直接调用 parking(); 不用担心具体车型?
: 这么个意思?

avatar
w*p
36


【在 n**0 的大作中提到】
: OO经典题了
: ParkingLot is a class.
: ParkingSpace is a class.
: ParkingSpace has an Entrance.
: Entrance has a location or more specifically, distance from Entrance.
: ParkingLotSign is a class.
: ParkingLot has a ParkingLotSign.
: ParkingLot has a finite number of ParkingSpaces.
: HandicappedParkingSpace is a subclass of ParkingSpace.
: RegularParkingSpace is a subclass of ParkingSpace.

avatar
p*2
37

你能定义一个看看吗?

【在 i******t 的大作中提到】
: 是不是不同的车型 对应不同的具体的子类
: 每个车型 收费啊 位置 可能是不同的
: 用户调用的时候 他直接调用 parking(); 不用担心具体车型?
: 这么个意思?

avatar
i*h
38
any C++/Java textbook

【在 p*****2 的大作中提到】
:
: 你能定义一个看看吗?

avatar
p*2
39

我想看看为什么要多态。

【在 i***h 的大作中提到】
: any C++/Java textbook
avatar
i*t
40
我也不会。。。。
估计大体意思就是 你写个类 别人去吊
调用的时候 pBase->park();
pbase 具体执行 看怎么create的
比如可以 pbase = new CSUV(); 那么 pBase->park();就是调的suv的 park了
interface 就是park()
靠 这是不是基本的c++虚函数啊?
那位大侠指点一下

【在 p*****2 的大作中提到】
:
: 我想看看为什么要多态。

avatar
p*2
41

我想知道的是你park里边的代码是长什么样的。

【在 i******t 的大作中提到】
: 我也不会。。。。
: 估计大体意思就是 你写个类 别人去吊
: 调用的时候 pBase->park();
: pbase 具体执行 看怎么create的
: 比如可以 pbase = new CSUV(); 那么 pBase->park();就是调的suv的 park了
: interface 就是park()
: 靠 这是不是基本的c++虚函数啊?
: 那位大侠指点一下

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