C++ interview questions collection

C++ side

Difference between reference and pointer? (efficiency and functionality)

Does adding method pairs cause the class object size to increase?

How to prevent or detect memory leaks?

How do smart pointers resolve circular references?

Inline functions are not inlined in those cases?

delete[] does those things

Handwritten binary search or merge sort

algorithm

Find the median in a set of numbers (50% quantile, that is, find a number 50% smaller than it and 50% larger than it)

Find the Jaccard similarity of two sets (the number of intersections versus the number of unions)

Determine if line segments intersect

You need a key-val container that maintains the insertion order, you can use the C++ annotation library (do std::map and std::unordered_map meet the requirements?)

What are the shortest path algorithms?

Find whether the word in the given dictionary is contained in query

Find nearby points quickly

The principle of diff tool

How does the Trie tree handle the Chinese situation?

Engineering

The shuffle process of MapReduce

How is the Web server Session implemented?

Why is database bulk insert faster than single insert?

computer

How to implement read-write lock based on mutex

Why does the condition variable wait method have a mutex parameter?

machine learning

What is Bayes' Theorem?

What is maximum likelihood estimation?

What is Stochastic Gradient Descent

What does the backpropagation algorithm look like

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325344405&siteId=291194637