注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
楼主由于收到裁员影响,不得已在近期寻找工作机会。这段时间SDE就业状况是我经历过的最低迷的一次,希望之后会有好转。每次准备面试都从地里的面经收益,这次也竟可能回报一下大。顺便赚点大米,以备下次面试所需。;)
Chime整体感觉氛围很不错,eng都很开心。面试过程中逐渐对这个公司产生了一些好感。
Coding
两道题都是地里的常见题
1. design credit card - 详见
2. 9宫格输入法,相当于word break2和word dictionary2的结合体
T9 is a type of keypad commonly seen on mobile phones (see picture below). To type with T9, a user enters digits and a program (also called an input method) translates the input into English words with the help of a dictionary stored on the device.
Our task is to implement this input method.
Inputs
The main function will be given two inputs:
input_digits: an integer array (contains only 2-9 and length is up to 25)
valid_words: a string array, defines a list of valid English words. (up to 50)
Outputs
A 2D string array of all thequest一定要存到硬盘上,不管是哪种设计。scheduler比较简单,而且这个并不是time sensitive,一天跑1,2次就行了。
2. 如何选择数据库来平衡CAP。主要是针对这个cheque deposit request这个表。这个例子中CAP似乎都很重要,所以一定要说从需求的角度分析,做假设。可以采用relational DB,然后想办法解决partition的问题(比如清理数据啊,想办法sharding啊),或者用non-relational,然后解决ACID的问题。面试官让我两个里面选一个,我第一时间觉得这个deposit request table可以做成append only,没有atomicity的需求,所以选择了dynamoDB。但是设计到后边就发现这个还是有Atomicity的需求,就说完蛋了,不行我们自己实现个WAL吧。面试官说可以,但实际上加了WAL又没法做到scalable了。所以这里建议,银行的数据库还是首选relational DB吧。
3. 第三方服务的SLA:如何处理quota,qps的限制,如何设计retry的逻辑。
整体来讲,Chime的题目都很不错的,不过题库小了些。面试结果是通过了,但是几乎没有HC了。这两周再等等看有没有 team match。
希望对大家有所帮助,欢迎打赏些大米。 |