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

[题目讨论] 今天的热帖上有几个系统设计的题目,欢迎大家来讨论

全局:

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

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

x

今天的热帖上有几个系统设计的题目,欢迎大家来讨论呀

(1)Given yelp data, how to find top 10 restaurants in US

(2)Given a large file that we don’t know how many lines are there. It doesn’t fit into memory. We want to sample K lines from the file uniformly. Wrtie a program for it.

(3) Design a job search ranking algorithm on Glassdoor

(4) You’ve has video play log like this:
Video ID,   time
vid1          t1
vid2          t2
。。。。。
The log is super large. Find out the top 10 played videos on YouTube in a given week

评分

参与人数 1大米 +1 收起 理由
HayleyTGKX + 1 给你点个赞!

查看全部评分


上一篇:刚发现有FB VO就送grokking the system design课免费一年
下一篇: 讨论下油管上这道狗家system design mock interview?
🔗
yulian 2020-9-20 09:07:32 | 只看该作者
全局:
1) a. what is the criteria?  only the restaurants with highest rating and meet the minimum vote number will be taken into consideration?  if so, a min heap of size 10 will do.
2) reservoir problem.  first K lines, put them in buffer, for k + 1 line, take k / (k + 1) probability, replacing it with an arbitrary one of the first k line.  for n line, take k / n probability, replacing it with an arbitrary one of the first k line.
3) feature selection + reinforcement learning
4) almost identical to question 1.
回复

使用道具 举报

🔗
 楼主| attar 2020-9-22 02:01:02 | 只看该作者
全局:
yulian 发表于 2020-9-19 17:07
1) a. what is the criteria?  only the restaurants with highest rating and meet the minimum vote numb ...

系统设计题,不是coding题,要考虑scalibility.
big data用heap是不行的,要用map reduce
回复

使用道具 举报

🔗
kuangbyte 2020-10-8 21:59:30 | 只看该作者
全局:
(1) (3) (4) Redis: ZRANK
回复

使用道具 举报

🔗
closhe2020 2020-10-13 14:57:53 | 只看该作者
全局:

评分

参与人数 1大米 +2 收起 理由
attar + 2 谢谢分享!

查看全部评分

回复

使用道具 举报

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

本版积分规则

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