The re-submitted job is better than the first job

Source: Internet
Author: User

Due to the serious error in estimating the first job, the work handed in in Tuesday was an extremely incomplete procedure and could not be operated correctly. After two days of debugging, a number of bugs and algorithmic deficiencies have been modified. The following are the major changes:

1. Stack overflow caused by the crash: modified the structure of the array variables related to initialization, roughly calculate and limit the variables in the function of the bounds of the array, to solve the problem of stack overflow.

2. Generate the formula: The method used in this program is to calculate a seed according to the parameters, as the interval, and then sequentially generated, which can be easier to avoid the same calculation formula

(1) The seed selection at the beginning of the problem, the calculation of seed errors resulting in the often generated formula can not meet the quantity requirements.

(2) The generation of the operation of the same problem, the pattern has problems, will cause the number of formulas can not meet the requirements

3. Read the topic and calculate: After the infix expression is converted to the suffix expression, when the suffix expression value is computed, there is a problem with the pop-up operation of the stack, resulting in a problem with the computed value.

4. Printing format: Format when printing fractions, printing matching results when there is a problem with the output format of correct and wrong at the beginning

5. Assignment of the structure: due to the unfamiliar structure operation, the assignment error resulted in many errors related to the structure.

The re-submitted job is better than the first job

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.