Interview Questions collection

Source: Internet
Author: User

1. Let's talk about the C ++ memory layout, where are static variables, const int A = 0, and where?
2. Draw a TCP three-way handshake. What if the last handshake server does not receive confirmation? Another question about data volatility is not clear.
3. Let's talk about the producer and consumer models. (Can be drawn)
4. Anonymous and named Pipelines
5. How can TCP/IP achieve reliability?
6. STD: what data structure does map use?

7. I forgot how to ask questions about HTTP. However, HTTP is required.

A small drop of water, each drop of water, the water drops will become larger. When the drop to 5 drops of water, this 5 drops of water bubbles will burst into four small drops of water and fly out in four directions.
The existing one-two-dimensional array, each array element is an integer of 0-4, indicating the size of the Water Drop. How can we find a way to empty the array by dropping the least drops of water, all of which are 0.
Element 0 in the array indicates null. If small drops of water fly out of the road encounter obstacles, they will be integrated. If there is a barrier, the small water drops will not stop, and they will fly out.

For example:
Sample 1:
000
040
000
A drop of water is cleared.

Sample 2:
000
041
000
If there is a drop of water in the middle, it will become
000
002
000

Ask how to find a way to clear the array with the smallest drops of water, all 0.

A nice website http://man.chinaunix.net/linux/mandrake/101/zh_cn/Command-Line.html/index.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.