** Tencent C++ interview question side **Copy the code
C++ language features
Overloading and overwriting (the former with variable parameters, the latter with the same parameters)
The vector array difference
TCP three handshakes, four waves
Network seven layer protocol
Advantages and disadvantages of TCP UDP
Url access process, DNS query iteration, recursive query
The difference between HTTP and HTTPS, how encryption works
Process, thread difference
Process communication, said a consumer producer model
Has the shell script written before, then asked the specific command, the file modification character command, the process background execution command, also asked several other commands
I have used a relational database, mysql has what engine, transaction four characteristics, and then give a database table, two SQL questions
To describe the traversal of binary trees, we write a non-recursive preorder traversal
Linked lists have a ring problem
Dictionary tree, I don’t know, and then I said substring matching, and I said KMP algorithm, and I didn’t ask for specifics
Huawei’s soft challenge competition last year
Difficulties in the project
Sorting algorithm, time complexity, space complexity
Git command merge, conflict resolution, interface security, interface documentation, server, etc. I also asked a lot of questions about how to do this project, how to collaborate… The project I asked is the JavaWeb background project I work on, which is basically written up to fill the number
Tencent C++ interview question two
C++ familiar?
Are the Linux instructions familiar: how to find a directory, how to replace keywords in text
Tear algorithm: merge sort inverse pair
Streaming media
Opengl understand?
Red black trees, b+ trees
How to reduce hash collisions?
Do you know about RPC swift? (Never heard of it)
What is the function of fork? Why not use system?
Do you play games? What games to play
What does cloud gaming look like?
Then he threw me a stack algorithm. Let me do the algorithm in C++
Do you know go
C++ smart pointer
What does private inheritance do?
Are if-else and switch the same at the assembly level
Tencent C++ interview questions in three aspects
Process differences and connections
Reasons for different overhead
Familiar with Windows or Linux? Introduce and tell the difference
Do you know the file system?
How does an executable become a process?
Do you know what the hardware storage is?
What are the sorting algorithms? The difference between bubbling and fast discharging
Do you know B trees and red black trees? What is the implementation principle? Application?
Osi layer 7, talk about link layer and physical layer protocol, association
TCP 3 times handshake 4 times wave, explain why 4 times wave, explain time_wait
What’s the difference between HTTP and HTTPS? The difference between SSL and TLS? TLS authentication process?
Programming problem: one-dimensional array represents buildings of different heights. Output how many buildings can be seen in front of each building, including front and back
Tencent C++ interview questions four
Process thread differences
TCP UDP difference
TCP three times four times
TCP flow control
Algorithm: find the KTH largest number among N unordered non-repeating integers
Tencent C++ interview questions five
To introduce myself
Project introduction
CPP static function
Definition of CPP polymorphism
The data organization gives you a million strings, and counts the number of occurrences of the same string.
Data structure hash conflict resolution, how to search?
The data structure knows the B + tree
Data structures know skip lists
How many mice can detect the poison (the drugs can be mixed)
Tencent C++ interview questions six
TCP three handshakes, four waves
TCP serial number function (not complete)
TCP sliding window, congestion control
Epoll implementation mechanism, why return all ready, and select, why select can’t do it
Why single thread processing connected thread pool transaction mode (my small project)
What other modes are available for high concurrency?
C++ polymorphic implementation mechanism
Why is runtime polymorphism possible
C++ stores data areas
C and C++ static. Only c++
Where is static stored?
Billion QQ number, find a QQ number is not inside
Common STL
STL low-level implementations are commonly used
What books have you read and what have you done to prepare for development?
The realization of ATOI function
Tencent C++ interview questions seven
One programming problem, sequence related, only passed 30 percent
I asked how to debug at ordinary times, how to judge where the problem is if the memory keeps growing. I asked a lot about debugging, and what debugging method was used
Size of virtual memory addressing space
There were a lot of questions surrounding this programming problem, but I’ve forgotten.
What happens when the browser enters the URL and hits Enter
How to store 4 billion QQ numbers
Basic unit of CPU scheduling?
Which libraries do you pay attention to?
Tencent C++ interview questions eight
Const, static keyword usage
Static asks for a long time what an object class can and cannot access
Virtual function, pure virtual function
What does a class declare by default
Copy the constructor. How to implement a deep copy
Can constructors and destructors be virtual function causes
What’s the difference between new and malloc? Can new be freed with free
What’s the difference between vector and list? How do you find a number out of order? You can’t use find because you still have to look it up sequentially. Okay
What is the implementation of a map? Can a red-black tree map be implemented in another way? What are the ways that hash_map hash tables resolve conflicts
Three handshakes why three four waves
Network development will not select poll
The difference between heap and stack in virtual memory
Memory allocation, from the code segment to the stack ask me what’s on the stack
How processes communicate what shared memory is
What database have you used? What engine does MYSQL use
The difference between keys and indexes is which is more efficient
Transaction concept The isolation level of a transaction
Tencent C++ interview questions nine
I heard you recently worked on a Web project. Tell me about it.
What difficulties did you encounter and how did you overcome them
Evaluate your strengths
Are you aware of the open source components used in CPP backend development
Do you know c++11? Talk about the new c++11 features
The latest standard in c++
How does c++ implement the singleton pattern
Talk about smart Pointers
The difference between binary search tree and red-black tree
Let’s talk about select, epoll
What command is used to capture package inside Linux
Big data scenario: 512 MB memory, 4 gb of INT data, read-only and unwritable hard disk
Well, today’s interview to share here
Free C++ learning kit