Summary of meituan face-to-face

The content is taken from my learning website: topjavaer.cn

Share a reader's interview experience with Meituan, which is more informative. If you are interested, you can take a look~

one side

  • How message queues ensure reliability
  • How does message queue guarantee message idempotency
  • Pros and cons of message queues
  • Why use b+ tree
  • The difference between a clustered index and a primary key, how do other engines do it
  • Usual database encoding
  • explain parameter
  • What are the http message parameters?
  • To do the question, the linked list is output in an even and orderly manner

two sides

  1. Self introduction
  2. What sorting algorithms are there?
  3. Introduce fast sort/heap sort/merge sort.
  4. How should indexes in the database be designed?
  5. What are the situations where indexes fail?
  6. What submission method does the HTTP interface you use use?
  7. Difference between GET/POST?
  8. What else besides GET/POST?
  9. Object-oriented fundamentals? Let's talk about dependency inversion in detail.
  10. Introduce the strategy mode and observer mode?
  11. How to ensure the idempotence of user requests? Idempotency means that the user may submit payment requests three times in a row and return the same result (successful payment), but the actual backend is only executed once to maintain consistency.
  12. Introduce TCP four waved?
  13. Does the client close immediately after the fourth wave? What is the status?
  14. For two large files, store a url in each line, and find duplicate urls in the two files.
  15. In a large file, each line has an integer, how to find the 100th largest number?
  16. In a large file, each line has an integer, how to find the median?
  17. The basic data structure of redis?
  18. How is zset implemented? What are the commands?
  19. Algorithm Problem 221. Largest Square

Three sides

  • Project-related (module division, project requirements, technical solutions, database design, table structure and relationships, roles)
  • The key fields of the http protocol, such as the key fields of the request and response header information, and their meanings
  • http status code: 100, 200, 502, 504
  • The difference between http and https, what problem does https solve
  • Three-way handshake, four-way wave (detailed process + state change)
  • What may be the reason for a large number of close_wait, the solution, what tool can be used to see that there is a problem with the network, etc.
  • What are the common collections in Java? Do you know the initial capacity loading factors of List, Set, and Map?
  • What are the methods of thread communication in Java, and the general principles
  • If MySQL encounters a problem with poor performance, such as slow query, what should I do?
  • Database optimization scheme (index | sub-database and sub-table)
  • What are the indexes, data structures, and the principles of indexing
  • The principle of sub-database sub-table, talk about the scene (horizontal | vertical, hot data | cold data blabla)
  • Algorithm problem: the sum of two numbers

four sides

  • Self-introduction, project introduction, asked about the amount of data
  • Do you understand microservices? (Did you do your own research while working on the project to understand the tools and methods commonly used by the company at present)
  • Do you know spring cloud?
  • What should I do if a machine cannot meet the delivery requirements? Answer: Build a few more machines, Q: How do multiple machines work together?
  • explain mapreduce
  • If there is a large file, TB level, and the numbers in the file are out of order, how to sort them? How is mapreduce implemented?
  • Merge sort in the sorting process, please describe the process? time complexity
  • The difference between process and thread, when using Java, what is the difference between the concept of multi-threading and the thread process in os? When actually used, how are threads and processes in Java scheduled?
  • Multi-threaded method of synchronous mutual exclusion? Answered the semaphore, asked how to implement it, answered pv operation, gave a specific scenario, and asked how to initialize variables (equivalent to dictation code)
  • What indexes are there? (mysql as an example)
  • What kind of tree structures are b-trees and b+-trees, and what is the query complexity? Is it a balanced binary tree?
  • Have you ever used redis? What to do?
  • Hand torn code: LRU algorithm; forward and reverse sequence traversal binary tree

This article has been included in the Github warehouse, which includes core knowledge points such as computer foundation, Java foundation, multi-threading, JVM, database, Redis, Spring, Mybatis, SpringMVC, SpringBoot, distributed, microservices, design patterns, architecture, school recruitment and social recruitment sharing, welcome to star ~

Github address

If you can't access Github, you can access the gitee address.

gitee address

Guess you like

Origin blog.csdn.net/Tyson0314/article/details/131617916