Baidu Mobile Cloud Wearable Department interview experience, the interviewer is very warm and friendly, but on the contrary, I am very embarrassed. The following record of their own interview process, because I really do not have any interview experience, need to summarize.
Side
Objective C Runtime library:objective C's Object model, block's underlying implementation structure, message sending, message forwarding, these need to be behind the C-layer description, memory management.
Core data: An operation that handles large amounts of data synchronization in multiple threads.
Multithreading: When to deal with multi-threading, several ways, pros and cons.
Delegate, NOTIFICATION,KVO, other advantages and disadvantages
Runtime has a little cross-examine, category,method implementation mechanism, class loading process.
1 side overall feeling good, 40 minutes less, feel the answer can also. Be told to two sides in a moment.
Two sides
Two sides of the time is very long, almost 3 hours, the direct face to get off work. The main question of 1 is the knowledge point. 2 asked the main survey is the ability to design solutions, in addition to assist the way to examine the depth and breadth, the answer process needs to list the specific examples, the program needs to be detailed to the specific key function name, method. In addition, we examine the understanding of design patterns, and finally test the algorithm. Because the time is too long, here are some important questions to note.
Design a progress bar solution, cross-examine to Core Graphic, Cgpath, Masklayer.
Design a popup view is pressed to Keywindow, UIWindow layer, UIView hierarchy.
The difference between delegate, Notification and Kvo is analyzed from the angle of design pattern. Asked to write their own library and open source projects to use which design patterns, why use, what are the advantages and disadvantages, can now be improved.
As a matter of question 3, design a scheme to detect KVO synchronous asynchronous problems. The differences between Willchange and Didchange were then asked if there was a similar situation elsewhere and were asked to Falut object in core Data.
This is the question 4 of the cross-examine, design a KVO system.
Multithreading, when to use the multithreading scheme, and why. Ask the system what else is running in the background thread, be asked to view life cycle, iOS6 after the different and memory management.
Multithreading often encountered problems, cross-examine to deadlock, priority rollover, thread pool and so on.
Baidu has an billion-tier app that needs to count user behavior in the log system. Do not use the database, just use ordinary files, design a system. is pressed into the memory-mapped file. This problem is a server problem, I said I have never done, the answer is very blind.
The algorithm tested 2. One is how to find the intersection of 2 sets. The other is to find the same number in tens of billions of data and the number of occurrences.
Finally, I added a few minor questions.
How you feel about wearable devices
If I get into this team, I'm going to do that thing myself.
Why entrepreneurship, your own future planning
One will be told 3 sides, but because it is too late, about the next afternoon 3 side.
Three sides
3 sides of the time and 1 face almost 40 minutes, asked a few questions, mainly to examine the spiritual level of things.
Why do Windows Mobile
How to change iOS
Why Baidu
Why iphone can be successful and those that attract you
How to view AppStore's current ecological circle
That's what he said, the difficulties the team encountered and the plans of the 14 team. At last he gave me 2 comments, I think it is quite right.
The choice was deliberate.
Ambitious, wanna make a Difference
Interestingly, he said he also wanna make a difference.
Summarize
Overall is quite awkward, almost all of the knowledge points are 1, 2 years ago accumulated, 13 years of accumulation of things basically no, are some virtual things.
2 side is very good, exposed himself a lot of problems, design patterns that part of the almost no concept.
At last
Interview through, I personally think 2 side of my problem in thinking about design patterns, and in addition to the window hierarchy there are insufficient. Design KVO above on the didchange above considered insufficient. These were all laid bare on the spot.
One concern was that the core Animation was not asked during the interview. This is still my favorite part. Anyway personally like to ask the way, it is easy to examine the depth and breadth of understanding.
The whole interview was a great harvest and found a lot of deficiencies. Another 1, 2 face interview Topic personally feel also good. Here to share with you.
1, how to make the object that you write have copy function?
2, say you understand the weak attribute?
3. Title: Use of Swift mutating keyword?
4. What is the relationship between UIView and Calayer?
5. What does the following code output?
6. What is the role of @synthesize and @dynamic respectively?
7. Dynamic Binding
8, Category (categories), Extension (extension) and the difference between inheritance
9, why the agent to use weak? What is the difference between an agent's delegate and datasource? What is the difference between block and agent?
10. The difference between ID and nsobject*
11, how to make the object that you write have copy function?
12. Do you also consider reference loops when using some of the system's block APIs, such as the block version of UIView?
13, NSString (or nsarray,nsdictionary) declared with @property often use the Copy keyword, why? If you use the strong keyword, what might be causing the problem?
14. What is the relationship between UIView and Calayer?
15. What is the function of static?
Underlying:
16. What is the process before main ()?
17, KVO basic principle?
18. How to use KVC under Swift?
19.: What are the modes of Swift?
20. ObjC What happens when a message is sent to an object?
21. What is the principle of static library? Have you ever written a static compilation library and what problems have you encountered?
22, Runloop is to do what? What is the relationship between Runloop and threads? Does the main thread turn on Runloop by default? What about the child threads?
23, do not manually specify Autoreleasepool, the premise of a Autorealese object at what time release? (for example, in the viewdidload of a VC, create
24, do not manually specify Autoreleasepool, the premise of a Autorealese object at what time release? (for example, created in a VC viewdidload)
25, OC Complete message forwarding mechanism + code to achieve "critical hit"
Answer: Because the answer is too much, I made a PDF document, because can not upload files, need answers can add small QQ Exchange Group 776598941, in the inside to obtain documents, also welcome recruiters, find work to provide a larger platform
May This article Baidu IOS interview summary sensation throughout the development industry "headlines hot Search"