After two months, I finally got a byte beating offer and shared algorithm interview questions "with answers"

The byte beating side The
byte beating side
1. Introduce myself (school, grade, award, GPA)

2. Talk about the difference between UDP and TCP (specifically talk about how TCP realizes reliable transmission. I talked about the three states and the whole process of congestion avoidance, and I talked about the TCP version. The interviewer added the retransmission mechanism)

3. The usage scenario of UDP (video transmission, DNS is explained in detail)
4. How to realize redis distributed lock? What problem should we pay attention to?
5. A piece of code needs to execute multiple redis commands. How to ensure the originality without locking?

6. The difference between threads and processes (from the operating system, JVM, coroutine, CPU scheduling, the difference between coroutine and thread scheduling)

7. HTTP protocol (status code (not detailed enough), HTTP1.0, 1.1, 2.0, HTTPS, asymmetric encryption and symmetric encryption)

8. How to implement Redis's snapshot mechanism to ensure that it can respond to other requests during the dump process (Let me design it myself, I learned from the Hash memory structure design, and simply designed one myself, using twice the memory space)

9. How does Java mark GC (reference counting method, GC roots, what constitutes roots)

Algorithmic questions:

First give a question about LeetCode difficult problem, catch the rain (I roughly talked about the implementation ideas)

Then I gave another question about LeetCode. It’s relatively simple to calculate the reverse order of two linked lists.

On the other hand, the
interviewer is really super good, and the questions asked are relatively basic. Then we should prepare carefully, maybe it will be a byte beating?

ByteDance Two Sides
Briefly introduce yourself

Start writing algorithmic questions directly

LeetCode medium Difficulty: Linked list sorting (requires a constant space complexity). I wrote it using insertion sort. The interviewer asked me to write it again using merge sorting. I talked a little bit about the idea but didn’t write it

LeetCode hard Difficulty: n queen problem

After writing the two algorithm questions, the interviewer asked me to briefly talk about all the knowledge that MySQL understands and the data types of Redis

Finally, I asked the detailed questions about cookie and session

Two-sided reflection
At first, I felt that I was going to hang up, but suddenly I got better later.

Byte beating on three sides.
This interview feels beyond my expectation. It is not like an interview. It is more the interviewer to guide me how to think.

At the beginning, I talked to the interviewer about my basic situation and showed my blog. Then I talked to the interviewer about my views on Douyin products.

After that, the interviewer came up with a more difficult 24-point combination question. I clarified the idea a little bit under the prompt, but the recursive way behind it was not very good.

Finally, the interviewer asked a question that is biased towards architectural design thinking: how to design the topic ranking list of Douyin

I simply speak from the perspective of coefficient weighting, and the interviewer later popularized me a lot of ways of thinking:

You can do a similarity grouping process from the video content, address, time, theme and other information. At the same time, if you want to make a topic comment area, from the pure read-only requirement to the writing requirement, how to achieve the timeliness and effectiveness of comments Notification information and so on.

Three-sided reflection.
In fact, the performance of this interview was not very good. The interviewer also said that my ability and competing undergraduates did not have much advantage. However, I still have to face it optimistically, hoping to get this offer that fascinates me.

Bytedance on
all sides The four sides are HR sides, mainly to talk about their basic situation (scores, competitions, entry time, graduation time (graduate or work), own ability to get along, teamwork ability)

Summary of
Bytedance The first round of Bytedance interviews are staff-oriented, emphasizing the basics, and you need to pay special attention to reviewing the operating system and computer courses. If you have energy, you can also learn graph theory and cryptography.

Byte’s second round of interviews is a small leader face, emphasizing the algorithm, you need to try to brush some LeetCode Hard reminders, train your own thinking, I have encountered Hard problems in every round of interviews

Byte third round of interviews is big leader face, thinking algorithm enemies of limits and analytical thinking architecture, you can see some of the architectural design of the book and part of ACM's title
summarizes
these faces was actually not very social recruit friends applicable, are It's relatively basic, but his learning mentality can imitate a wave, using various network resources to learn, don't be a fan in the group every day, especially for certain groups of Zaha (can be seated)

The above byte-beating interview questions and system learning materials can be shared with everyone for free. Friends who need the full version, click here to see all the content! Secret code CSDN.

If you need the PDF version, you can get it in the group folder by yourself!
Insert picture description here
40 sets of 2020 Java interview questions collection 1000+ page PDF documents!
Insert picture description here

Attached: We collected 20 sets of real Android interview questions for first- and second-tier Internet companies (including BAT, Xiaomi, Huawei, Meituan, Didi) and my own Android review notes (including Android basic knowledge points and Android extensions). Knowledge points, Android source code analysis, summary of design patterns, Gradle knowledge points, summary of common algorithm questions.)

Guess you like

Origin blog.csdn.net/weixin_47345084/article/details/110533553