Five programming problems that must be solved by programmers within half an hour.
Every time I release my job requirements for software engineers
Various job applications will come soon.
. But every time I am confused,
There seems to be some applicants who do not understand the meaning of "Programming" at all.
Of course, they have another idea.
In my opinion, if you are applying for a "Web Front-end development" position, then you only understand jQuery and can be competent, does "software engineer" mean HTML, JavaScript, and CSS skills are required?
(I think the headers are XML, JSON, XSLT, SOAP, HTTP, REST, SSL, and over 200 acronyms, however, it is interesting that the data types of integer and floating point types are not differentiated. Haha)
Are you sure you want to write code?
I, as an employer, want you to write code first. I mean the real code: I will give you a question, and you will use any programming language that you feel comfortable with to give it a solution.
Can you really do this?
Policy: if you cannot solve the following five problems within half an hour, review yourself first. Indeed, you may have done a good job in all aspects, but I still feel that you do not deserve "software engineers" (or programmers, computer science experts, or even "developers "). Don't deceive yourself. Take some time to adjust your focus.
Five questions
Question 1: Use the for loop, while loop, and recursion to write three functions to calculate the sum of the given series. Question 2: compile a function to combine the elements of the list in an staggered manner. For example, if the given two lists are [a, B, C] and [1, 2, 3], the function returns [a, 1, B, 2, C, 3]. Question 3: compile a function to calculate the first 100-bit Fibonacci number. According to the definition, the first two digits of the Fibonacci sequence are 0 and 1, and each subsequent digit is the sum of the first two digits. For example, the first 10 Fibonacci numbers are:, and 34. Question 4: compile a function that sorts the numbers in the given list of non-negative integers into the maximum number. For example, if [50, 2, 95021] is specified, the maximum number is. Ps: Click here to read my solutions. Question 5: write one at 1, 2 ,..., 9 (the sequence cannot be changed) insert + or-between numbers or do nothing, so that the calculation result is always 100 of the program and all possibilities are output. For example, 1 + 2 + 34-5 + 67-8 + 9 = 100.
If you are superior in ability, the above problems are just a piece of cake for you. If you can solve them more than 0.5 hours ago, Please treat my generosity as a fart.