Today went to a company interview, Brain son feel dizzy, there are a few algorithm problems are not done, the topic is relatively simple, should be not ready for themselves, the state is not how to do, after the interview oneself feel not satisfied, after still have to sink the heart to, do enough preparation, to let the interview add a bit of color, To share today's questions with you, also give yourself a summary:
1, a balance, the right disk has a number of equal weight of the white ball, on the left side of a number of equal weight of black balls, the balance between the two sides. Now take a white ball from the right disk on the left plate, and then put the left disk of two black ball on the right plate, while the left plate plus 20 grams weight, this time If you move two white balls from the right to the left, move a black ball from the left to the right, then you need to put 50 grams of weight on the right, both sides of the balance. Q: How much spin placed struck and black balls weigh?
2. The results of the sequence traversal, the middle sequence traversal and the post-order traversal of the following two-fork trees are written:
3. What's wrong with the following procedure?
public class Something{public static void Main (string[] args) {SomeThing s=new SomeThing (); System.out.println ("The S.dosomething () is" +dosomething ());} Public String dosomething () {return ' do something ';}}
4. Insert sort and bubble sort which is good, why?
5. What are the output results of the following programs?
public class Test{public static int y=8;public staitic void main (string[] args) {change (y+5); System.out.println ("y=" +y); public static int change (int y) {Y+=3;return y;}}
6, using UDP communication How to determine the recipient received the packet?
7, for a forum online number, assume that there is a forum, its registration ID has 200 million, each ID from login to exit will be logged to a log file logging time and exit time, ask to write an algorithm to calculate the day of the Forum users online distribution, sampling granularity of seconds.
8, what are the different layers of MVC implemented by what technology, how to achieve?
9, Programming Problem: Write a singleton (singleton mode)
10. What are the links and differences between BS and CS?
Interview Communication:
1, talk about your career planning;
2, simple introduction of their own;
3, according to the previous system to communicate;
4, Oracle How to create a library;
5, Ibatis, Android, front page technology;
All right, this is all, a little summary, but also hope that we can help, whether it is the interview or work, are a learning process, all have to go to a good conclusion, together to learn progress!!
Java Engineer face question