周二面的。面试官是国人小姐姐。面完以后感觉肯定挂了,没想到这周二HR邮件通知我过了。题型比较新,发出来分享一下顺便为on site攒一攒人品~
题目是Instagram adding video chat feature.
SQL:
date caller_id receiver_id duration caller_country receiver_country
‘2018-07-01’ 1234 7567 63.4 ‘ES’ ‘ES’
‘2018-07-01’ 1234 3669 50.8 ‘ES’ ‘ES’
‘2018-07-01’ 1234 8998 0.0 ‘ES’ ‘PT’
Q: for people who used the feature for the first time on 2018-05-05, how many people used the feature X days later?
一个典型的算retention的问题。当时立马想到写where subquery,写完之后和面试官一起debug了一下没问题了,没想到竟然要我不用where subquery 再写一种。于是我一开始在select table 里面做filter,改了两次面试官都说不work(语气超级吓人,直接说"no it does not work",“no your table is wrong”,自信心-10000),幸好最后灵机一动想到了inner join,面试官就要我写,我刚写完后面的on还没检查她就说OK。于是move on to product。
Product:
- How do you tell the 7th day retention is good or bad?
retention就是SQL里的 # of people used the feature X days later.
- We only add this feature in Spain for now, why we do that?
这道题的Spain只是一个代名词,可以是任何一个国家。每说完一个reason都有一个anything else反问,反正就是要你尽可能多说。
3.Imagine the head of Instagram walks in to your office, how do you tell him the effect of adding video chat feature to people’s time spent on instagram?
这道题小姐姐问的非常不清楚,以至于我一开始走错了track,后来经过反复询问才知道她想问我怎么去test the effect (典型的AB Test问题),所以说communication真的很重要,不懂一定要去clarify,走错track就不好了。
4.How do you choose the control group?
这又是一道我一开始理解偏差的问题,我以为在Spain里分control vs test,最后没想到Test group就是Spain整个country(这…),于是赶紧往国家方面扯,比如说必须得是developed country啊,地理位置要和spain挨的近啊,user behaviors要和Spain similar啊,demographic distribution也要相似啊。anything else连击again。 总之十分push。
5.Suppose the result of the AB testing shows only 1% difference between control and test group, and we expect more, what is the reason?(这道题又是死亡what else连击)
我先说了一个break down the population,see the performance of each age group,sex,etc.
然后anything else之下又说了一个 seasonality,是不是conduct的test的时间是大家都不怎么上ins的时间段,比如开学。
然后小姐姐又anything else?
这个时候我已经想不出来了,纠结了一分多钟来了一句,are we assuming our pick of control group is correct?她好像很满意我的问题于是说no,然后我就说那可能是选组出现问题了可以investigate一下control group。
刚答完最后一个问题结果时间到了,并且好像下一个时间段的面试官已经过来敲门了(他们都是在一个小房间面试,可能每个time slot是一个电面),于是小姐姐马上end interview说nice to talk to you,我当时想的竟然是幸好时间到了不然最后一个问题你再问一个anything else我就答不出来了。匆匆结束面试。
整体下来感觉就是压力面试,并且feedback几乎没有,也没有什么hint。我都是根据面试官打字的节奏判断我答的对不对(只要答的不是她想要的她就会停止打字)外加等待时间出奇的长,一般都是两三天出结果我等了一周,觉得肯定凉凉了,给个加面就算万幸。结果没想到竟然过了。等待期间stalk了一下HR的ins,发现她去参加别人婚礼了,fine。