补充几个
算法
- 给一个 video dataset,graph 表示,相连的就是相似的 video。每个 video 也有 rating。求给一个 video id,找出相似的 video 里面最高 rating 的 k 个
- heapify https://blog.csdn.net/u012255731/article/details/52739267
- vertical的traversal binary tree https://leetcode.com/problems/binary-tree-vertical-order-traversal/description/
- 给一个2D matrix rotate 90 degree
- Group Anagram的input如果是streaming怎么处理?
System Design(需求->结构->schema->scability->reliability, consistency)
- DVD rental(load-balnace, database)
- Uber after user hit the “confirm order” button, what happened backward
- phonebook可以存姓名+电话
- 订餐系统
- 国际象棋游戏,最近好高频啊!!!没玩过的不知道规则直接凉透了啊!列举出主要的interface,比如move,isGameEnded, getWinner, updateGameState, etc. 实现其中的主要功能,updateGameState
- 系统设计一个producer和subscriber的系统,producer可以publish message到一个topic,这个topic的subscriber会可以接收到这些message并处理它。主要是要讲一下系统里面的各个组成模块以及各个模块之间的interface (RESTful api),再有就是storage的design,和operational support (monitoring等
- amazon locker系统,实现一个算法帮助邮递员找到最优的available lockers来投递包裹(因为包裹有不同的尺寸,locker也有不同的尺寸,算法必须能够让尽可能多的package能够被投递到locker)