This is where I went for an interview last week. Well, I think-at least I think I have done my best and it is helpful to me no matter what happens. This is where I went for an interview last week. Well, I think-at least I think I have done my best and it is helpful to me no matter what happens.
Since I have signed a confidentiality agreement, I cannot write out the questions they asked me. However, I can write about my interview process and what preparations I have made.
First, this is Google-so of course I won't let my friends who work there not recommend me. I did not go through a telephone interview, because I am a "local", so I was directly invited to the company for an interview. I personally think that face-to-face is definitely better than phone interviews, and I am lucky.
First, I had a brief chat with the recruiters and told me that I needed to use whiteboards and processes, then two software engineers gave me a 45-minute one-on-one interview. Then I was surprised to find myself having fun in the interview! In general, I feel only pressure during the interview, but Google's interview is really good, because there is no stupid participation, there will be no embarrassment for playing the piano. Cool! The first interview is quite easy, but the second interview is a little difficult, but not too bad. The most difficult part is on the whiteboard (rather than a computer !) Write code on -- TDD is difficult on the whiteboard! They told you that there is no need to dress up, so never dress up the instrument-because you need to write code on the floor, and you can write it on the whiteboard not at half past one, it can also be written with ink. Imagine what would happen if you were wearing a skirt!
They sent me a series of helpful interview preparations. Because of my solid Learning Foundation, I have been involved to some extent. In addition, I usually do these things-learn the latest industry news in a timely manner, widely use Google products, write blogs, and think about how technology can change our lives (yes, the last two things are very helpful ). I will deeply understand and use new Java 5 products, such as Generics, Enums, and for-each.
The content I prepared is as follows (all Book links are linked to Amazon ):
- Read objective Java (version 2nd)-without any exaggerated words, this book helps me become a qualified Java programmer.
- Read Programming Interviews Exposed and review basic data structures, such as lists and trees, through all exercises. The recursion part is not as powerful as I have learned (because I have a function background). Instead, it advocates writing iterative methods. However, this is indeed a very good and useful book.
- Read "Coders at Work"-this book talks about a lot of Google people and expresses their views on culture. It also introduced a lot of interesting programming history that I don't know, as well as some insights on how these historical Giants solve problems, as well as discussions on APIs and scalability.
- Combinatorial Algorithms: Generation, Enumeration, and Search, I am not a fan of this book. I think the mathematical symbols in this book are too heavy. Because we are programmers rather than mathematicians, using actual code to solve problems may be more helpful, and Wikipedia is almost certainly more readable.
- Studying Java Puzzlers helps cultivate the mentality of studying code and problems. Although no one asked me to do so, I do need to take a critical view of my code. In the interview with IBM, the question about the EB mobile screen was raised, and Google used that kind of question.
- Review concurrency problems-deadlocks, live locks, mutex locks, kernel locks, semaphores, etc. When will the synchronized keyword be used in Java? How can we avoid deadlocks? How to avoid a live lock?
- The traversal of the review tree-Preface, middle, and suffix. Deep preference search vs. breadth preference search. A *, Dijkstra algorithm, etc.
- Review balanced binary tree-red/black tree, AVL tree, and stretch tree.
- Review charts. Graph, minimum spanning tree, and search.
- Runtime analysis.
- 6 sort algorithm Encodings-including algorithms whose key time complexity is n log n-TDD style (test-driven development-for my test cases, please refer to this post ).
- Hash table encoding. only arrays are used. Including: Generics, dynamic arrays, and delayed initialization. In addition, there is a test first.
- Search for "Google interview questions" for all practical questions that can be obtained at hand, but do not waste time looking for similar questions about interview predictions or manhole covers-sometimes, I code in Eclipse, but sometimes in Google documentation. I like to work with my friends. he will review my code and ask questions.
- Talk to friends who have been working there for many years. Ask a lot of questions. He really liked it and helped me make a lot of preparations. Furthermore, understanding why he thinks I will be a good job seeker and why he believes I can do well helps me know why I want to work there (this is a common question, although this company is Google, as one of my mentors said, you want to work for them to the degree they want you ).
My Google friend said that I had made "crazy preparations", and I could even say that I was fully prepared-so what else did I do?
- More runtime analysis-find as many code as possible for analysis.
- Calculate the sum. For example, how to calculate the sum of 1 to n? It turns out to be useful. The second interview involved the replay runtime analysis, because I had something that looked like this :( n-1) (n-2) + (n-2) (n-3) +... + (3) (2) + (2) (1 ). Of course, I didn't create it at the time, so its time complexity is limited to O (n complexity ).
- Review the data structure of the Java library. One time, I said, "I know a non-repetitive data structure, but I cannot remember its name now ". Later, I remembered it that afternoon.
- Review the library methods and some key things-arrays and strings.
- Practice coding on a whiteboard or paper. You may naturally think that inserting a row or refactoring is very simple. In fact, when you write code on the whiteboard, it is certainly not on the computer. In addition, it is easy to forget the return statement-we do not need to do this in Eclipse. Therefore, I tend to write the Declaration and return statement first, and then add the code in the middle-of course, this can not be done on the whiteboard!
What should I talk about next?
Waiting.
Waiting.
Waiting!
Whatever happens, I want some feedback.
Encoding interview questions (and test cases !)
Complete Java Puzzlers.
Taking full advantage of time-I spent a lot of time preparing for it.
Investigate other companies. Especially-meet IBM employees to see if there is anything suitable for Google.
Listen to the instructor's opinions.