2016 Huawei School Recruitment Test record

Source: Internet
Author: User

3 questions, score 100/200/300, are not difficult

1. Enter a string that outputs a new string that is sorted by the absolute value of each letter and the ' U ' distance (if identical, arranged in the position relationship of the original string)

The core is to write a sort of CMP function, no difficulty

2. Continuation 1s: time given a string type (2016/09/13-13:13:13), output the next second

Consider the leap year situation and carry it in sequence.

3. Imitation vending machine: Give a string (shape such as P 1,p 5,p 5,b a1,b a3,b A2) and carry out the initial state of the pre-box, cash drawer, p K (1/2/5) is plugged into a K-yuan note, b Ak (1/2/3) said to buy 1/2/3 goods, to ensure that the input is legal, When looking for the minimum number of change notes, the output of the cash drawer and the status of the container.

Just a few details.

The whole without any algorithm problems, are pure process of the topic, but also simple, two hours more ample time.

2016 Huawei School Recruitment Test record

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.