Tencent
Tencent side (around 1h)
- Self introduction
- Do you understand Ali Health's business?
- What do you think of the prospects of this project in Ali Hospital?
- What data structure does redis use in Didi
- What storage engine does MySQL use
- How does Innodb set up transactions, you know what Innodb's transaction mechanism is
- How to use RocketMQ to decouple in Didi
- Algorithm 1: Given an ordered array, find two numbers whose sum is n
- Algorithm 2: Given an unordered array, find two numbers whose sum is n
- Algorithm 3: Given an array, the numbers in the array represent the height of the cylinder. If it rains, how much rain can be collected in the entire range?
Tencent two sides (around 1h)
- Self introduction
- Is Blink developed by Alibaba based on Flink or is it packaged?
- Have you participated in the recommendation algorithm in the byte project? What is your recommendation logic? (Rule engine, timed filtering)
- The filtered car information is stored in redis. What data structure is used?
- The difference between set and zset?
- How to read this information?
- What if you are inserting information while reading? (Redis transaction)
- Introducing redis transactions
- How to solve without using transaction? (Backup memory, read and write separation)
- If you don't use this method, do you have other methods? (Distributed lock)
- Introducing distributed locks
- How does innodb implement transactions (mvcc, gap lock)
- B+ tree only has leaf nodes to store data, what changes will happen? Why such a structure?
- Algorithm 1: Delete duplicate nodes from the linked list (the idea is relatively simple, but it tests the coding ability of the linked list, handwriting, and the interviewer will compile it with naked eyes...)
- Design Question 1: Implement a memory copy function (memorycopy, the input parameter is a pointer of any type, and the memory address after copying is returned)
- Design question 2: If the link in the email verification is only valid once, how to realize the validity period of 30 minutes? Complete the design idea and give a url example
- Summary: The problems are all divergent problems, fixed assessment of few knowledge points, application of more knowledge points, large on-the-spot factors, and the algorithm is not difficult, but all need to be hand-tipped coding.
Tencent three sides (about 30min)
- Self introduction
- I talked about the project in detail, the intern, and the laboratory asked, not much follow-up, I am very interested in data development
- Two large files, one string per line, A file is 1T in size, B file is 2T in size, find the intersection of the two files
- It's dinner time, how do you recommend a restaurant to someone?
- Rhetorical question
Tencent HR surface (about 30min)
- Self introduction
- Advantages and disadvantages
- Previous internship experience
- The company culture of Ali Didibyte
- Which offers have you taken, and which companies have you met?
- How to choose Ali Tencent
- What is the basis for choosing a job
- I can’t remember the specific questions of the HR interview, mainly talking about life and asking about company choices
Meituan
Meituan’s entire video interview, three rounds of interviews, after the third round of interviews did not organize the interviews, so there are only one or two rounds of interviews.
Meituan side (about 50min)
- The difference between rewriting and reloading
- Can the return value be used as a distinguishing sign for overloading?
- The difference between == and equals
- Long a = 1000L and long b = 1000L, what does a == b return?
- Long a = 1000L and Long b = 1000L, what does a == b return?
- What to understand about Java data structures
- If you need to save the order placed in the Map, what data structure to use
- How to expand the underlying data structure of HashMap
- How does ConcurrentHashMap ensure thread safety
- Which design patterns will be
- Introduce the strategy mode
- Write a singleton mode (coding, double check lock for writing, synchronized for use)
- What other locks are there besides synchronized?
- Change to ReentrantLock to write
- Write a deadlock (coding)
- How is MQ used in the project
- Talk about the B+ tree structure of mysql
- The isolation level of the database, what are they solved
- Usage of join
- What is the effect of left join
- The wording of database paging limit
- What does ACID stand for
- The network protocol is divided into several layers
- Which layer is TCP on?
- Three handshake and four waves
- What does the RPC framework understand and what protocol does it use?
- What are the commonly used HTTP request methods and what is the difference?
- Idempotence
- How HTTPS is implemented
- Is there a git repository?
- How to learn a new language or new technology?
- What blogs or communities have you seen?
- Rhetorical question
Meituan two sides (about 50min)
- Self introduction
- I find the hardest and most rewarding project and where is the reward
- Redis data types
- How to solve the cache avalanche (request to say a variety of ways)
- TCP three-way handshake
- What is the difference between the first, middle and the last order traversal of the tree
- What sorting algorithm knows
- What is the fastest sorting algorithm
- Talk about fast queue
- Which offer and which company did you face?
- The difference between SpringMVC and SpringBoot
- How to prevent sql injection in MyBatis
- SQL: Table (name, subject, grade), count the sum of all subject scores of each person (coding)
- Algorithm: Two strings, find the longest common substring (coding, test point)
- Design: A system with a daily order volume of 100w should now become more than 1000w. If you are an architect, how do you consider this issue
Didi
Didi one side
- Self introduction
- Didi's project
- Byte item
- How to use redis
- Distributed lock
- What scenario in Didi uses distributed locks
- Can it be optimized?
- Algorithm: n+1 length array with numbers from 1 to n. Find out the repeated numbers (requirements: time complexity O(n), space complexity O(1), and the original array cannot be modified, and the array can be converted In a linked list, use the linked list to find the entry of the ring. Coding and test points are required)
- Rhetorical question
Didi two sides
- Self introduction
- Byte item
- Why the data is stored in redis but not in mysql
- Ali project
- Understanding the value of big data, some real-time computing scenarios
- Blink and Redis (confusing question, is there a relationship between the two)
- Batch and stream processing
- How to use multiple threads
- The difference between Thread, Runnable and Callable
- Thread-safe data structure
- Thread-safe way of HashTable and ConcurrentHashMap
- JavaNIO
- IO multiplexing
- Why is epoll faster than select, and what to optimize
- The bottom layer of zset in Redis
- The time complexity of the skip table? why?
- Redis's distributed architecture
- Election algorithm in sentinel mode
- Communication protocol between Redis nodes
- Database Innodb understand
- mvcc
- Algorithm 1: The largest continuous sub-array sum of the array (coding, test point)
- Algorithm 2: Determine whether the binary tree is a search binary tree (coding, test point)
Didi on three sides
- Self introduction
- Laboratory project, what are you responsible for
- Talk about each state in detail
- If two administrators approve the group logo at the same time, will concurrent insecurity occur?
- How to deal with it?
- What do you think is the most important or most difficult problem in the project?
- Byte project, talk about it in detail
- Rules engine related
- Some questions about redis data storage and cron in the project
- The project brings the greatest improvement
- Did you encounter any problems after going online? How to solve them
- Didi project in detail
- How to configure various activities and rules
- Reward plan, reward implementation, reward recovery specific logic
- Why didn't Spring Recruit choose to come to Didi to continue the internship?
- Mind changing the technology stack (Golang, PHP)?
- Algorithm 1: Print 0~9 and implement it in two ways, recursive and iterative (welfare coding)
- SQL: Flow list t (serial number, user name, product name, unit price, quantity, date) statistics: the names of the top three users with the highest sum of consumption in August (coding)
Reader benefits
Share the high-frequency interview questions (including answer analysis) that I have collected and summarized by myself, hoping to help fans and friends get their favorite offers. (Obtained at the end of the article)
Study notes (obtained at the end of the article)
Fans and friends who need to get the above information, after one-click three consecutive