Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OOD-lintcode-709-Restaurant OO Design | Nagato's blog #41

Open
nagato1208 opened this issue Sep 11, 2019 · 0 comments
Open

OOD-lintcode-709-Restaurant OO Design | Nagato's blog #41

nagato1208 opened this issue Sep 11, 2019 · 0 comments

Comments

@nagato1208
Copy link
Owner

https://nagato1208.github.io/2019/09/10/OOD-lintcode-709-Restaurant-OO-Design/

描述设计一个餐馆: 不考虑预订座位 不考虑订外卖 餐馆的桌子有不同大小 餐馆会优先选择适合当前Party最小的空桌 请实现Restaurant Class, hints: findTable(), takeOrder(), checkOut(). 思路感觉OOD主要就是脑洞啊…尽量往实际场景中靠拢. 需要考虑实现的对象: Meal -price (lunch or dinner)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant