[Landing experience] Huawei's three aspects are comprehensive. Thanks to me, I successfully got the offer to land ashore!

Preface

Qiu Zhao was stumbling along the way, and now he is more numb and dissatisfied, but he also knows how many catties he is. There is no sadness or joy, so he can only graduate first and then start slowly. Let’s talk about the process first, and then write the face-to-face scriptures, just for the record. It’s good if someone can see the topic and review it.

Background: Undergraduate physics, master computer partial theory, almost no development foundation. At the end of March, I suddenly saw the news about Spring Recruitment, and I panicked. What if I can neither algorithm nor develop? I can’t sleep every day, considering the algorithm is already more difficult, immediately started 0 basic self-study back-end development (unexpectedly, the back-end also started to roll, not very friendly to my rookie).

In addition, I am here to prepare interview materials for the first-line manufacturers and my original super-hard core PDF technical documents, as well as a number of interview questions from the major manufacturers that I have carefully prepared for you (continuously updating). I hope everyone can find their favorite job. ! Friends in need pay attention to my official account : You can click to get the information!

one side

  • Self introduction

  • Is Java an interpreted language or a compiled language?

When I came up, I said that it was wrong to compile, and that JavaScript was interpretive, but I didn't expect it to be wrong. It is also forced to explain that Java needs to be compiled and converted into bytecode and loaded into the JVM. You can look at the difference between interpretability and compilability.

  • I questioned my major and thought I was the Institute of Mechanical and Electrical Engineering, why did I make software?

I said that the direction of our research group is actually mainly computer-related (discrete event system petri nets). In other schools, they are actually in the School of Computer Science.

  • What do you know about related operating systems and networks? (Let me be specific, I can talk about the knowledge of memory management)

First, it explains why there is virtual memory, the access module MMU that converts the virtual address to the physical address in the CPU, and the page replacement algorithm after the process page fault, the longest unused (LRU), the most unused (NRU), first-in-first Out (FIFO), second chance method (FIFO improvement), clock method (second chance improvement)

  • Hand tear code: Leecode15, the sum of three numbers (this question is very lucky, it happens to be on my puzzle set, if you are interested, you can look at the several questions I summarized, and you can check the missing parts)

I didn’t finish writing, because it required O(n 2 ). He questioned that my inner loop exceeded O(n) complexity. I explained it for a long time, and finally convinced the interviewer with the worst-case scenario.

  • Hand-tear code derivative question 1: Because the loop in the code has already been deduplicated, he said that if there is no such operation, and the duplicate is directly put into List<List>, how can I directly deduplicate through List?

I said I can convert each List into a string, and then put it into the HashSet to remove the duplicate (obviously this is not the optimal solution he wants)

  • Hand-tipped code derivative question 2: If you put it directly into Set<List>, can you directly remove the duplicates?

I said no, because the address is stored in this way, even if the contents of the List are the same, the hash value is different, because the default hash value is calculated by the address.
But in the end, under the guidance of the interviewer, he said that he wanted to rewrite the equals method by rewriting hashCode (here I said it was the hash function).

  • Your project is deployed through Docker. What is the function of the ENTRYPOINT instruction in Dokerfile?

I said that I have not encountered this deployment before, not very good at it

  • Do you have any familiar Shell commands?

I just talked about the commonly used top, netstat, vim, chomd, etc.

  • Have knowledge about cloud computing

Briefly talk about IaaS, SaaS, PaaS, others are not very good

  • Final comment: It is said that as a non-subject linguistics is not bad, but the operating system is still too poor to make up

Two sides

  • After self-introduction, directly tear code: Leecode300: the longest ascending subsequence, complexity O(n 2 )

I did this question by using a double pointer, updating the temp value, and recording the length of the global longest sequence. In fact, it is similar to the dynamic programming of a dp array.
But after I finished writing, I basically discussed with him how to reduce complexity, but I still don't know how to do it. He said that nothing has met the requirements, but it should be possible to pass (binary search reduces the complexity to O(nlogn), and interested students can study)

  • Let me talk about the difference between a process and a thread. How do processes and threads communicate?

I said that the process is the basic unit of resource allocation, and the thread is the basic unit of CPU scheduling. Processes are executed in time-slices, threads can be executed in parallel in the case of multiple cores, and pseudo-parallel can only be achieved by switching in the case of single cores. Processes communicate through pipes, and threads can communicate through shared memory.

  • Talk about the process and reason of OSI model layering and TCP three-way handshake

I won’t say much like everyone else

  • Class loading and parent delegation

  • It was about to end. I think it was so short. I was full of eagerness and said that I thought I could talk about my main project. The interviewer even directly agreed to let me talk about the project background and my main work. For more than 20 minutes, I am very grateful to this interviewer for patiently listening to me.

Three sides

  • Introduce yourself (it's very coincidence that the interviewer this time is also from Xidian)

  • The same question is that it was originally from the Institute of Mechanical and Electrical Engineering. I will explain it again?

  • Let me introduce the background management project of the mall?

  • Why did you choose this project? Is it related to the research group or self-study?

I said this is a learning project for my system to learn Java. I chose it mainly because it is simple but covers a comprehensive amount of knowledge.

  • What were your main considerations at the beginning of this project?

This answer was unexpected. I thought it was asking about high concurrency. In the end, I turned back to me or mainly considering how to build it, and slowly build the system through video books.

  • What do you think you have gained from the project?

I said to improve my understanding of development, from the systematic understanding of the project to the decoupling between various modules. In addition, I understand the importance of comments and documentation to the code. These materials are very helpful for you to review the project later.

  • Then tell me about your first project (this is my main job, originally the interviewer was not interested in it, but I forgot because of the specific talk about it)

I just talked to him about the project background, start time, etc. It lasted about ten minutes

  • Finally, he would like to ask if there is any teamwork project?

Because my postgraduate projects are either alone, or basically inherited from seniors, and rarely cooperate, but I also talked about the help of teachers and classmates to my work during the project.
In the end, I said that the electronic design competition was for three people. I told him the bumpy experience during our competition. He felt like listening to a story.

  • How to evaluate Huawei?

I talked about crisis awareness, wolfish culture, openness and diversity, and added the examples and understandings I saw before.

  • What do you want to ask me?

I asked how the newcomers here are cultivated.
Finally, what is flattering is that the interviewer got up and took the initiative to shake my hand to say thank you. I also responded quickly. Thank you very much. I am very happy to talk for so long ( )

to sum up

Finally, I prepared ava core knowledge points for everyone + a full set of architect learning materials and videos + first-line big factory interview collections + interview resume templates + Alibaba Meituan Netease Tencent Xiaomi Iqiyi Kuaishou Bilibili interview questions + Spring source collection + Let's share the Java Architecture Practical eBooks with everyone for free!
Friends in need pay attention to my official account : You can click to get the information!

Guess you like

Origin blog.csdn.net/jiagouwgm/article/details/111861949