在YouTube面的。一上来被问了一大堆关于Android threading的问题,比如foreground thread 和background thread有什么区别,怎样设计程序防止UI卡顿之类的。简历里果然不能乱写。。。
然后是一个设计题,已经有一个程序使用了标准的一个容器(比如List),现在有一堆第三方容器,怎样尽可能少更改源程序来利用这些新的类。其实就是写一个Wrapper Class,直接被面跪了。
算法题倒是挺简单的,两道二分查找。另外有一题给一个数列要求调整成小大小大小大。。的模式,有线性的贪心算法。. from:
另外还有一题是对稀疏向量求点积,HashMap或者直接归并都是可以的~
感觉面得好奇葩,求加RP求过>.<
Read full article from Coder stuff: GG
No comments:
Post a Comment