查看: 42320| 回复: 49
跳转到指定楼层
上一主题 下一主题
收起左侧

[题目讨论] 系统设计问题/面试题总结 - my collection of system design interview questions

   
全局:

注册一亩三分地论坛,查看更多干货!

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x
问题列表,欢迎大家讨论答案

1. 某建筑有五十层高,打算装俩电梯,设计该电梯系统
2. Designed the parking lot. Asked a number of questions. Design thoughts on Aggregation, Composition, etc. Designed Classes. Had a lot of discussion on the flow. How to validate or invalidate Slot, Parking Lot and Vehicles. Wanted to make Park() method a O(1) instead of O(N). I suggested that we use a Stack to store the empty slots. O(1) was for UnPark(). I was not completely satisfied with the design - we were passing the variables in/out of the methods... The interviewer was happy anyways.
3. 设计一个客户/服务器,或者基于网络的音乐会订票系统
4. Design a Hotel reservation system which will support the following functions. a) User will get a list of all different types of rooms. b) User selects a room type & check the room availability between the specified dates.  c) User Makes Reservation.
5. Design a car renting system, including reserving a car, checking in and checking out. consider all the cases: reserve a car, then check out successfully; reserve a car, but the car is sold out before you check out... Add the test cases.
6. Design problem of train reservation system
7. Design software for a restaurant
8. 实现一个text editor, 选用合适的数据结构,和解释各种功能怎样实现,占用的内存空间.
9. design chess game
10. Design a deck of cards, players class also;
11. Design class structure for zoo.
12. Design the Game of Othello
13. Design the game of Tic tac toe.
14. Design an on line poker room
15. Design the data structures for an online book reader system.
16. How would you design a file system using class diagrams and what data structure would you use?
17. Describe the data structures you will use for implementing snake & ladder game
18. How would you design the software that runs on an ATM machine? The software should support operations such as checking balance, transfer funds from one account to another, deposits and withdrawals.
您好!
本帖隐藏的内容需要积分高于 155 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 155 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Popular Interview Questions from Top Companies

29. Design a voice conference system.

评分

参与人数 46大米 +180 收起 理由
qingtingj + 1 赞一个
老干妈奶油蛋糕 + 1 很有用的信息!
Airaly + 1 geilivable
TIM58MAN + 2 给你点个赞!
w95051 + 1 很有用的信息!

查看全部评分


上一篇:大数据算法,实时系统,spark和hadoop的学习资料和讲义下载
下一篇:搜索引擎:原理技术与系统 读书笔记

本帖被以下淘专辑推荐:

推荐
 楼主| fby0656 2019-8-26 09:29:14 | 只看该作者
全局:
liux0656 发表于 2019-8-7 11:39
Object Oriented Design
Design a Parking Lot. (Amazon)
Design a Car Dealership. Test Battery, Test  ...

TOP 10 design questions from Co-founder at Educative.io

1. Design TinyURL or bitly (a URL shortening service)

Given a (typically) long URL, how would how would you design service that would generate a shorter and unique alias for it.

Discuss things like:

How to generate a unique ID for each URL?
How would you generate unique IDs at scale (thousands of URL shortening requests coming every second)?
How would your service handle redirects?
How would you support custom short URLs?
How to delete expired URLs etc?
How to track click stats?
2. Design YouTube, Netflix or Twitch (a global video streaming service)

Videos mean that your service will be storing and transmitting petabytes and petabytes of data.You should discuss how to efficiently store and distribute data in away that a huge number of users can watch and share them simultaneously (e.g. imagine streaming the latest episode of a hit TV show like Games of Thrones).

In addition, discuss:

How would you record stats about videos e.g the total number of views, up-votes/down-votes, etc.
How would a user add comments on videos (in realtime).
3. Design Facebook Messenger or WhatsApp (a global chat service)

Interviewers are interested in knowing:

How would you design one-on-one conversations between users?
How would you extend your design to support group chats?
What to do when the user is not connected to the internet?
When to send push notifications?
Can you provide end-to-end encryption. How?
4. Designing Quora or Reddit or HackerNews (a social network + message board service)

Users of the services can post questions or share links. Other users can answer questions or comment on the shared links. The service should be able to:

Records stats for each answer e.g. the total number of views, upvotes/downvotes, etc.
Users should be able to follow other users or topics
Their timeline will consist of top questions from all the users and topics they follow (similar to newsfeed generation).
5. Design Dropbox or Google Drive or Google Photos (a global file storage & sharing service)

Discuss things like:

How would users be able to upload/view/search/share files or photos?
How would you track persmissions for file sharing
How would you allow multiple users to edit the same document
6. Design Facebook, Twitter or Instagram (a social media service with hundreds of millions of users)

When designing a social medial service with hundreds of million (or billions of users), interviewers are interested in knowing how would you design the following components

Efficient storage and search for posts or tweets.
Newsfeed generation
Social Graph (who befriends whom or who follows whom — specially when millions of users are following a celebrity)
A lot of times, interviewers spend the whole interview discussing the design of the newsfeed.

7. Design Uber or Lyft (a ride sharing service)

While designing a ride-sharing service, discuss things like:

The most critical use case — when a customer requests a ride and how to efficiently match them with the nearby drivers?
How to store millions of geographical locations for drivers and riders who are always moving.
How to handle updates to driver/rider locations (millions of updates every second)?
8. Design a Web Crawler or Type-Ahead (search engine related services)

For Type-Ahead, as the user types in their query, you need to design a service which would suggest top 10 searched terms starting with whatever the user has typed. Discuss things like:

How to store previous search queries?
How to keep the data fresh?
How to find the best matches to the already typed string?
How to handle updates and the user is typing too fast?
For Web Crawler, we have to design a scalable service that can crawl the entire Web, and can fetch hundreds of millions of Web documents. Discuss things like:

How to find new web pages?
How to prioritize web pages that change dynamically?
How to ensure that your crawler is not infinitely stuck on the same domain?
9. Design an API Rate Limiter (e.g. for Firebase or Github)

You are expected to develop a Rate Limiter services that can:

Limit the number of requests an entity can send to an API within a time window e.g., 15 requests per second.
The rate limiting should work for a distributed setup, as the APIs are accessible through a cluster of servers.
How would you handle throttling (soft and hard throttling etc.).
10. Design Yelp or Nearby Places/Friends (a proximity server)

This service would need to store locations for millions of people/places. Discuss things like:

How would the users of the service be able to search nearby friends or places
How to rank places (based on the distance, user reviews).
How to efficiently store location data according to the population density (e.g. a block in New York City might have more places/people than a small city).

评分

参与人数 1大米 +2 收起 理由
easynbreezy + 2 很有用的信息!

查看全部评分

回复

使用道具 举报

推荐
admin 2019-8-8 01:52:50 | 只看该作者
全局:
本文被选为全站置顶文章之一。
作者获得大米奖励。谢谢你的分享。
回复

使用道具 举报

推荐
 楼主| fby0656 2019-8-7 11:39:52 | 只看该作者
全局:
Object Oriented Design
Design a Parking Lot. (Amazon)
Design a Car Dealership. Test Battery, Test Moonroof... (Amazon)
Design a car renting system, including reserving a car, checking in and checking out. consider all the following cases: reserve a car, then check out the car successfully; reserve a car, but the car is sold out before you check out... (Amazon)
Design an Elevator system. (Amazon)
Design a Vending Machine. (Amazon)
Design a Card Deck and Card Game. (Amazon) Mitbbs
Design a Chess Game. pdf
Design a Jigsaw Puzzle Game.
Design a Zoo system.
Design a Multimedia Cookbook (MS)
OOD of a general messaging system aka publish-subscribe (observer pattern) (Amazon) Design the classes and object for a file system. (Amazon)
How do you represent the following expression in "class design": (5*3)+(4/2) ? How would an algorithm that computes the value of this expression work? (Amazon)
How would you design the software that runs on an ATM machine? The software should support operations such as checking balance, transfer funds from one account to another, deposits and withdrawals. (Amazon)
Design: How would you implement scoreboards for different games played on Xbox Live? DB, API, ... (MS)
Design a library for writing card games. (Google)

System and Software Design
Design an online reader system. (Amazon) Design an online chat room.
Design an online poker room. (Amazon) Design an online messenger.
Design an online reservation system (air ticket, restaurant/hotel reservation etc) (Amazon) Design a Hotel reservation system which will support the following functions.
Design a voice conferencing system (Amazon)
a) User will get a list of all different types of rooms.
b) User selects a room type & check the room availabilty between the specified dates.
c) User Makes Reservation.
[Discussed about "locking" the room availbilty or not in case if user wants to proceed with reservation]
(Amazon)
Design a software for a restaurant (Amazon)
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Popular Interview Questions from Top Companies


Trouble Shooting & Improve Performance
              
the "logging in" feature of amazon.com has a problem. isolate the problem. (Amazon)
Say you have a system. The design is good. But performance is not good. How would you find where the problem is? went on for about half an hour about it. (Amazon) last time they ask me some system redundancy questions... such as a system always fails unex (Google)
How to increase web browsing speed. You are allowed to do anything at client/server
(Google)

Other
You have 50,000 html files, some of which contain phone numbers. How would you create a list of all the files which contain phone numbers? (Amazon)
How would you design a stapler for a blind person? (Google)
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Popular Interview Questions from Top Companies

3. You can use only custom written applications or available free open-source software.
(Google)

评分

参与人数 7大米 +58 收起 理由
dazhi2014 + 1 赞一个
Vincentapple + 2 谢谢分享!
kevinmfu + 2 给你点个赞!
UUOlidd + 1 赞一个
abc99 + 1 赞一个

查看全部评分

回复

使用道具 举报

全局:
感谢楼主分享!
回复

使用道具 举报

🔗
xhjin99 2019-8-8 06:21:57 | 只看该作者
全局:
非常感谢楼主的分享,基本我看到的题都在这里了!
回复

使用道具 举报

🔗
EmiyaShiron 2019-8-8 06:42:03 | 只看该作者
全局:
感谢楼主分享!!
回复

使用道具 举报

🔗
ZIckeyChan 2019-8-8 07:56:44 | 只看该作者
全局:
收藏了!感谢
回复

使用道具 举报

全局:
好贴,谢谢lz分享
回复

使用道具 举报

全局:
谢谢分享!!n
回复

使用道具 举报

全局:
收藏学习了,谢谢楼主分享
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表