T1 Large companies and unicorns Meituan New grad Round 1
Meituan AI Infra campus hire first round
Real Meituan AI Infra campus-hire first-round interview questions covering operator optimization
Operator optimization
Round 1
Theory
- Why did HashMap introduce red-black trees?
- Since red-black trees query faster than linked lists, why not use red-black trees from the start?
- Could you replace red-black trees with a BST or AVL tree? Pros and cons of each?
- What are the core thread-pool parameters?
- If code uses synchronized heavily and becomes slow, how do you optimize?
- How does synchronized differ from AQS-based locks? Where do the performance differences show?
- When a production system hits frequent Full GC, how do you debug and fix it?
- When do CMS and G1 collectors fit? Do you know ZGC?
- How do you understand the leftmost-prefix matching rule?
- You build a joint index on columns a, b, c. For
a > 1 AND c = 1, how is the index used? - When production hits a slow query, how do you locate and debug it?
Project deep dive
- Introduce performance-optimization work during the internship, and how operator metadata logging stays non-invasive to business code.
Live coding
- Remove duplicates from a sorted list II.
Round 2
Theory
- What is the result of this Java code? How do you fix the issues?
int a = 3; Integer b = null; int c = a + b; long d = 1L + 0x7fffffff; int e = a + (int)d; - What does
Integer a = 567; Integer b = 567; System.out.println(a == b);print? How do you change it to match expectation? - Introduce the Java concurrency knowledge you know.
- What common locks exist in Java, and how do they differ?
- How does a thread pool work?
- From pressing the power button to opening a browser into the interview link, what bottom-level steps does the computer go through? (POST, boot sector, OS boot, process/thread creation, display rendering, full network-request path)
- Why do video calls use UDP underneath instead of TCP?
- Introduce MySQL core knowledge from an application angle.
- How do you tell whether a SQL statement used an index? Which EXPLAIN fields do you usually watch?
- Describe the field design and indexes of a real table you have used.
- What is the execution order of SELECT, FROM, WHERE, GROUP BY, HAVING, and similar keywords?
Project deep dive
- Pick one internship experience and walk through it in detail, focusing on technical hard points and challenges.
Live coding
- Search for a target value in a 2D matrix that is sorted by row and by column.