如何准备

对于书里的每一道题,你都应该:

  1. Try to solve the problem on your own (自己解决问题). Hints are provided at the back of this book, but push yourself to develop a solution with as little help as possible. Many questions are designed to be tough-that's okay! When you're solving a problem, make sure to think about the space and time efficiency (并思考时间和空间复杂度).

  2. Write the code on paper (把代码写在纸上). Coding on a computer offers luxuries such as syntax highlighting, code completion, and quick debugging (没有代码高亮、自动补全、快速调试). Coding on paper does not. Get used to this-and to how slow it is to write and edit code-by coding on paper.

  3. Test your code-on paper (在纸上测试你的代码). This means testing the general cases, base cases, error cases, and so on. You'll need to do this during your interview, so it's best to practice this in advance.

  4. Type your paper code as-is into a computer (把代码敲进计算机里). You will probably make a bunch of mistakes. Start a list of all the errors you make so that you can keep these in mind during the actual interview.

In addition, try to do as many mock interviews (模拟面试) as possible.

核心数据结构,算法,概念

Powers of 2 Table

If you are doing a phone screen with a web-based company, it may be useful to have this table in front of you. (如果你正在进行电话面试,你一定很渴望拥有一份这份表格)

results matching ""

    No results matching ""