Hang Seng electronic pen questions, Hang Seng pen questions
(1) Discussion
1. You know several design patterns and introduce the design patterns you know;
2. Use a program example to describe how to use final in java;
3. What built-in objects does jsp have;
4. linux system commands;
5. design table structure. Background: a primary school has six grades and each grade has five classes. Now, the school leader wants to count the scores of all students from the upper grades to the lower grades, total score of all students;
6. Write the SQL statement for question 5;
(2) algorithm questions
1. there are arrays a [] = {,}, and a child array with continuous increments in the middle, such as {, 14, 9}, {3, 6 }. Now, make sure that each incremental part of the original array forms a new array m [] [],
Evaluate the array m;
2. There are two ascending ordered arrays a [], B [], which combine a and B into an ordered array;
3. Given each n, a spiral array can be formed. Given a n, a spiral array is returned in only one loop;
Example: n = 5
1 2 3 4 5
16 17 18 19 6
15 24 25 20 7
14 23 22 21 8
13 12 11 10 9
Here, I will follow my own ideas to make the question more complex. The whole process is relatively simple. If you are interested, you can do it. The last question may be a little difficult, the test time is 40 minutes.