boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 设计一个 restaurant reservation system?
相关主题
请问OOD的问题应该如何回答 有哪些资料可以参考
攒人品,发amazon第一轮面筋
guangyi的面经和总结
如何能高效学习java
amazon 面经
问个简单的数学编程题吧(google interview)
新鲜出炉的Amazon第四次电面,运气再次守恒
Amazon OO Design 经典题的思考
两道经典design问题求助
如何提高解决OOD面试问题的能力?
相关话题的讨论汇总
话题: int话题: restaurant话题: system话题: 设计
进入JobHunting版参与讨论
1 (共1页)
j**l
发帖数: 2911
1
好像从来没有人贴过具体的思路,谁可以分析一下这个经典问题?
c*********n
发帖数: 1057
2
coask

【在 j**l 的大作中提到】
: 好像从来没有人贴过具体的思路,谁可以分析一下这个经典问题?
C*Y
发帖数: 736
3
估计是OOD之类的问题。我之前也发了个帖问这个,几乎没人理我
http://www.mitbbs.com/article_t0/JobHunting/31604349.html
j**l
发帖数: 2911
4
晕,下午Amazon第一轮电面就真的问了这道题,真是哪壶不开提哪壶。
l*****a
发帖数: 14598
5
shit
i wrote this for more than 3 hours last night....
class room
{
int roomnumber;
int type;//level,bed number and the other search criteria
int [12][31] status; //maybe not good,keep the reservationID
void MakeReservation();
void CancelReservation();
void CheckOut();
}
class ReservationInfo
{
int ReservationID;
char * CustomerName;
int RoomNumber;
date StartData;
data EndData;
int status; //00 reserved 01 canceled 10 checkin 11checkout
int price;
publi

【在 j**l 的大作中提到】
: 晕,下午Amazon第一轮电面就真的问了这道题,真是哪壶不开提哪壶。
l*****a
发帖数: 14598
6
I just use a list,so the search efficiency may not high.
if u want to get a high efficiency when search the empty room based
on the query.
1) you can use some other data structure
2) you can create different room list based on the type/level/bed
number...store them sorted.
then just find the intersection of different list..

【在 l*****a 的大作中提到】
: shit
: i wrote this for more than 3 hours last night....
: class room
: {
: int roomnumber;
: int type;//level,bed number and the other search criteria
: int [12][31] status; //maybe not good,keep the reservationID
: void MakeReservation();
: void CancelReservation();
: void CheckOut();

s********l
发帖数: 998
7
哇~ 赞一个~

【在 l*****a 的大作中提到】
: shit
: i wrote this for more than 3 hours last night....
: class room
: {
: int roomnumber;
: int type;//level,bed number and the other search criteria
: int [12][31] status; //maybe not good,keep the reservationID
: void MakeReservation();
: void CancelReservation();
: void CheckOut();

1 (共1页)
进入JobHunting版参与讨论
相关主题
如何提高解决OOD面试问题的能力?
基础OOD - Restrant Reservation System
OOD:设计conference room reservation system
请问一道面试题
求大神说说如何设计一个ecommerce的reservation system
amazon 电面
Java developer Opening(Junior) at MD
还在招,在招Java developer DC H1-B在招 (转载)
请教一下,如何练习设计类的面试题目?
amazon第三轮电面
相关话题的讨论汇总
话题: int话题: restaurant话题: system话题: 设计