Mogujie.com pen exam 2015 school recruitment (technical post)

Source: Internet
Author: User
  1. There is a string of data to find the maximum incremental sequence. (For example, 4 2 6 3 1 5, the maximum incremental sequence is 2 3 5, and the output is 3)
  2. A and B are two integer sets, and an algorithm is designed to calculate the intersection, which is as efficient as possible.
  3. A large file record containing 50 m and URL, a small file record containing 500 URLs, to find the same URL in the two records, requires the minimum space and time.
  4. Implement a function and calculate the number of operations required for a positive integer n. Operation rule: if n is an integer multiple of 3, divide it by 3. If n is not an integer multiple of 3, you can add 2 or subtract 1 to continue processing. For example: func (7) = 2, it can be proved that at least three operations are required n = 7 n-1 = 6 N/3 = 2 n-1 = 1: the Int function (unsign int N) n is the input, and the minimum number of operations is returned.
  5. I forgot another question...

The idea and code will be added later.

 

Mogujie.com pen exam 2015 school recruitment (technical post)

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.