转自知乎日报
如果你想去更大的平台发展,比如微软、阿里、Airbnb、亚马逊,即使是前端的岗位,在面试时(甚至每一轮)也会考验一些算法题目(虽然我觉得没什么道理)。总的来说面试算法题的公司一半一半吧,另一半倾向于面试前端相关的实战练习题。外企基本不考察你的前端能力,只考虑你的算法和数据结构能力(别问我是怎么知道的,我的面试史就是一部血泪史)。所以前端同学懂一些基本的算法也是有必要的。我不知道其他语言的程序员在找工作时面试的算法题有哪些,但前端的算法面试题还算是比较基础并且不难(至少相对于我而言)。我也算是面霸了,所以分享一些个人经验,同时也是记录下来写给将来的有需要的自己。
如果你有比较明确的方向,比如“我以后一定要做C++/Java方向的开发”,那么一定要强调出来。如果像阿里这样每个面试官都有个方向牌那很容易搞定,如果没有则可以在面试一开始的自我介绍或找其它机会说出来让面试官知道,可能有人认为语言不重要,关键是算法、数据结构、操作系统云云……是的,很多面试官都跟我说过:在以后的工作过程中,语言不重要,重要的是你以后做的东西是不是你感兴趣的,但是我认为语言在面试过程中是有非常大的关系的,如果你是C++方向,那么面试官可能会问你一些虚函数机制、Linux下的内存分配策略、内存管理、常用系统调用等这方面的知识;如果你主攻Java,可能会问集合类区别、可研究过jdk源码、数据库等方面的知识。