Baidu Shenzhen written examination Summary

Source: Internet
Author: User

I reported to R & D engineers. I wrote the questions based on my impressions and shared them with you. It should not be a leak.

Question 1: Short answer

1. Explain the database operation steps in a short language.

Baidu Library's answer:

1. Establish a database connection
2. Open the database connection
3. Create database commands
4. Run database commands
5. Save database commands
5. Close database connection

 I only wrote three steps: open, execute, close

2. TCP/IP layer-4 protocol.

Answer on the Internet: application layer, transmission layer, Network Interconnection layer, and host to Network Layer

I wrote: data link layer, transmission layer, network layer, and Application Layer

3. Description of MVC Structure

Online answer: MVC is a design pattern that enforces ApplicationProgramSeparate input, processing, and output. MVC applications are divided into three core components: model, view, and controller. They process their own tasks.

I answered the question.

Question 2:AlgorithmAnd Programming

1. About the full arrangement. Use ~ Z and 0 ~ 9.

2. Reverse the string

3. For string matching, three known operations are provided:

Insert characters to any position;

Delete characters. Delete characters at any position;

Replacement character.

For example, a = abond; B = Abdon; calculates the minimum number of times from A to B. Here, in two steps, replace o with D and delete the last D. It is implemented recursively.

Note: 3 I did not do it. It's so sad. before the test, I saw such a similar question in "Programmer Interview Guide ".CodeIt was a little long. I didn't take a closer look at it at the time, but today I did not do anything about the tragedy.

Question 3: Design Questions

The implementation of RSA secretid is a random generation of passwords. Every 60 s generates a new password. If you have used the U shield of the Bank of China, you will know it. The question is how to design the system. The design requirements are related to the randomness of passwords and the number of tens of millions of users in the system. The last question is about algorithm updates (how to minimize modifications to servers and devices during algorithm upgrade, it uses the word "smooth ).

 

Let's talk about this. We can discuss what we can see.

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.