background

Perhaps due to my active GitHub, I received an invitation for an interview on Facebook during the National Day holiday. Since I have this opportunity, I certainly can’t waste it. Let’s try it

To prepare

Electrical surface process

Before I communicated with HR, I also checked a lot about Facebook’s interview process. It is said that you can win every battle by knowing yourself and knowing your opponent. HR was in Singapore and communicated with him in Chinese. After a brief exchange, he sent me an email related to the interview, but of course the subsequent telephone interview should be conducted in English. The email introduces the process of the interview, which lasts about 45 minutes. In the first 5 minutes, I will introduce myself and answer some simple questions about Android. In the next 35 minutes, I will do coding, and in the last 5 minutes, I will ask the interviewer some questions.

LeetCode

For foreign companies like FLAG (Facebook, Linkedin, Amazon, Google), data structures and algorithms must be passed, and you can write code without IDE, which is called whiteboard programming. Facebook uses CoderPad online coding. LeetCode is recommended, so I recommend copying the title to CoderPad and writing the AC code completely on CoderPad. If you are not familiar with the APIs, check the IDE to make sure that your code is the same as the IDE formatted code. A poem is attached below.

Ming has eight imperial examinations, today has LeetCode. Eight sets the format and take literary heart, LeetCode sets the topic and recites the answer. It’s called: “Practice makes perfect.” Neither nor neither, imperial examinations for the country to take scholars, LeetCode for Google screening code workers, each also need.

In this regard, fortunately, I am an ACMer in college, so I have some basic knowledge about data structures and algorithms. For your convenience, I have opened awesome-Java-LeetCode on GitHub, which includes the solution of leetcode related questions in Java language. Give a star if you think it’s good. As an aside, I always think that data structure and algorithm must be mastered and well used as a programmer. Even if I don’t have the opportunity to interview for Facebook, I will still check LeetCode and keep updating LeetCode problems in the future.

The following is part of the interview preparation that HR sent me after communicating with him.

There is also a reference to LeetCode, which shows its importance.

resume

An English resume is essential for the interview with foreign companies. It took me two days to make a Markdown general resume, which can be easily exported in various formats by Pandoc. As for why I spent two days, of course, I want to share it with you later.

A lot of people wanted to see my resume, but I only provided a template. If you still don’t know how to write your resume or feel that your resume is not perfect, you can learn from me to modify, I have uploaded it to GitHub, here is the portal, if you like, remember star.

Pay attention to the point

Facebook is more about team spirit. Even if you have excellent coding skills, you can type all the code in the interview without saying a word. Even if it’s bug-free, the interviewer will probably think, “WC, I wouldn’t want to work with that person!” . So coding and the interviewer when you need to communicate, don’t knock the hard code, but to act is in discussions with the interviewer, such as the boundary of the data to ask clear, do you want to use what means to solve this problem, the time complexity and space complexity, etc., after finish don’t forget to test cases, of course, The end goal is definitely bug-free.

conclusion

The above is my interview summary, whether I have the opportunity to interview next round, I will continue to consolidate the data structure and algorithm, update my awesome-java-Leetcode, after all, the interview machine for Facebook every year, even if not for Facebook, That’s what I’m supposed to do as a programmer: finish, scatter.