Analysis of interview questions of a famous software company

Source: Internet
Author: User
A famous software company held a job fair today. It is interesting to have such a question. The recruitment questions are as follows:
Donald + Gerald ---------- Robert has a total of 10 letters. Each letter represents one of the 0-9 Arabic numerals. If R = 7 is known, calculate the numbers represented by the other 9 letters. The answer is as follows: (1) 2D = T, meaning T is an even number. (2) 2L = r, think R = 7, and 2L is an even number, which indicates that 2D must have an inner, So D> = 5, Which means 2L + 1 = r and r = 7. Therefore, l has two possibilities. 1. L = 3. 2.l= 8 When l = 3 is set: (3)2a = e indicates that E is an even number. (4) N + R = B (5) 0 + E = 0 indicates that E has two possibilities: 1. E = 0. 2.e= 9. If Step 3 shows that E is an even number, it means that e can only 0. That is, E = 0 and there is no carry. According to step 3, A = 5(6) D + G = r = 7 and it cannot contain carry characters that indicate D + G = 7, while D> = 5 and E = 0, A = 5. D can only be equal to 6. According to step 1, t can only be equal to 2. G equals 1. In step 4, N + R = B. According to Step 4, there is no carry. Therefore, n can only be equal to 0, 1, 2, and B can only be equal to, 8, and 9. N values all conflict with the preceding values. Therefore, L = 3 is impossible in step 2.Donald

+ Gerald ---------- Robert When l = 8 is set to true: (3)2a = e Indicates 2a + 1 = E, indicating that E is an odd number. (4) N + R = B (5) 0 + E = 0 indicate that E has two possibilities: 1. E = 0. 2.e= 9. If Step 3 shows that E is an odd number, it means that e can only 9. E = 9 indicates that step 4 has an increment and N> = 3. According to step 3, A = 4 is also described.(6) D + G = r = 7. If the input number is D + G + 1 = 7, it means that D can only be equal to 5 or 6. G can only be 1 or 0. Assume that D = 6 then G can only be equal to 0, that is, G = 0. According to step t = 2, according to the analysis in step 2, n = 3, or equal to 5   If n = 3, B = 0, which is in conflict with G. If n = 5, B = 2 and T are abrupt.  If D = 5, G = 1. According to Step 1 T = 0. According to Step 1 analysis, n = 6, B = 3, and finally O can only be 2. O = 2. So the final result is. T = 0g = 1 O = 2 B = 3 A = 4 d = 5 N = 6 r = 7 L = 8 E = 9  Thinking of such a question is quite a test of the logic of our thinking. Being a Software Talent requires strong logic thinking capabilities. This is also an area for companies to examine software talents.

 

Related Article

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.