First on the machine, because the previous passed the Huawei Programming competition 2nd round, so free on the machine, so only need to carry on the machine personality test. Personality test or to brush people, so try not to contradict.
This year Huawei's interview only two sides, 1 technical side (1 to 1), 2, comprehensive interview.
1 Technical side, I just sat there, the interviewer is a 30 or so technical male, with an eye, a look is the type of technology. I was just sitting there, and he first asked me to write a function that handles finding long strings that contain a short string, and returns its position. Writing code on paper is still quite disgusting, but must be clear thinking, he gave me a pencil, let me write this function, in the process of writing, some details, I am not sure, but I insist on some special treatment methods, such as to consider whether it is empty, whether the length does not meet the conditions, And the variables inside the function are decorated with const. These are just the details, even though my program ended up with a little bit of beauty, but let him see, I said, I write the word is not good-looking, I come to tell you how I realize his bar, and then I will follow my thinking to speak, and the code, warm tips, to their own bright spots and details, such as my parameters in the use of The const modifier character, I said with the Const modifier, prevent the string is modified, more secure, and then said the next string is how to deal with, in fact, these are nonsense, but to say that you know as a lot of appearance, and show your programming habits very good appearance, even if the program is a little wrong, There is no problem, as long as there is a reasonable explanation (handwriting, unaccustomed) as well as the principle of the description. Finally, at his prompt, we both read my Code, of course, he also asked some questions, I made a simple change, before the clearance. In the code I have the Strlen function to get the length of the string, then he began to ask me the difference between strlen and sizeof, I roaster roaster said, and their realization principle to roaster roaster, he said, and then give me an example, ask me char a[]={1,2}; sizeof (a); The answer is, I said 2, and I was a little skeptical, because I was thinking about the relationship between a and the pointer, I told him the thought of my suspicion, he said my answer was right, then asked me strlen (a), and asked why, I said it was not knowable, because just now his principle of realization as well as said that he was met/ O was over. Description (The above things are actually I have reviewed, so, in the program to try to use their familiar grammar techniques, to guide him to their familiar areas. Then he asked me what project I have done, I said that three on the resume, he blew his own forest variant of the mobile phone game to him, inside the cocos2d-x engine to achieve, I guess he did not understand this, I began to blow ... Finally asked me in the game those picture needle how realizes the needle to switch and does not have the card, I just said some technology (this project I spent the whole afternoon to understand his principles, although the code site is not written out, but the basic principle of the module can be said, began to blow, use. plist file, then blow PLISt File Benefits, etc. ___ then began to ask me C + +, ask me about object-oriented understanding, and how polymorphism implementation, and give me an example of inheritance, when there is no virtual function when the object calls which method. and asked me why. And asked me his bottom is what principle is realized, I said an epidermis, he said this is a bit difficult, let me understand the bottom. And asked me to create an object new object, how his memory is allocated, the bottom is how to implement memory. I also said a little bit, Lenovo to the sturcut inside there is a memory completion function, he advised me to understand some of the more low-level things. Finally told me through the interview, let me go downstairs to prepare a comprehensive interview. ++++++++++++++++++++++++++++++++++++++++++++++++++2 a comprehensive interview .......... ........... First go in after is a 40+ leader bar, ... Then chat, introduce myself, ask my personality, look at my resume, ask my research project, ask me what position I want to do, ask my workplace, and always talk about it. But I feel he is not very interested in me, and then ended, this year's research and development position Huawei on 2 rounds, come back hurriedly write an interview experience to prepare the interview students to play hard. and praise for their own character, if hired, it is said that within 5 days will give Offfer notice. Pray, .... Spirit Spirit.