Akuna Quant Dev First Round Phone Interview

昨天面了Quant Dev第一轮电面,一开始大概用了5分钟讲了讲简历,然后就开始做题了。

一共是三道题,前两题在地里都有。第三题我感觉提到的不多,所以我详细讲一下。

第一题:remove duplicates in a list while preserving the order.
第二题:Power of 2 in 2 to 16. Use list comprehension.
第三题:Rotate Image. 要implement 3个function: (a)return trace of the matrix (b) rotate an image (represented by a 2-d matrix) by 90 degrees, given the parameter of clockwise or counter-clockwise © rotate an image by any degree that is multiple of 90 degrees 我一开始写的比较简单,所以可能多rotate了好几次。interviewer最后是希望所有的rotate都只rotate一遍,大家可以想一下该怎么写

这轮后大概两个小时就通知final-round了,final-round是90分钟的电面。

祝大家好运!

沙发,感谢楼主~~~

关于list comprehension有些疑惑,我学过Haskell,但是那里面的list comprehension貌似不是一个具体的方法?[2^I | 2^I>=2, 2^I <=16, I <- [0…] ] ?

Python的句法,list comprehension

楼主求问你是什么时候做的oa啊…