Zhihu (highly powerful) android development offer -- get, androidoffer
First introduce yourself
- I am a senior, computer shuiben, and I miss my postgraduate entrance exam.
- I am now working as an intern in the algorithm department of a company in didu. I am a big company, but I am a developer.
- When I was a sophomore, I wrote an app mainly using various frameworks.
Dry Loading
- Session1: I accidentally saw zhihu's inner post and sent a resume. In the afternoon, my hr sister called me and arranged an interview for three days. However, I had to write a test to Alibaba, so I didn't have to review it.
- Session2: Get up at. After, I went to the Pioneer Park in a tight atmosphere. I felt like a good atmosphere. I waited for a short time and an uncle at the front desk poured water for you.
Start
- Session3: it should be a study fellow monk who recently joined the work. He came out with an algorithm question, mainly converting characters to int, and then analyzed the time complexity and space complexity, later, I talked about the performance optimization of android listView and asked me about the features of recycalView and the way in which processes communicate. I mainly talked about aidl and shared files and broadcast. I also wanted to use java to install B, he is still proficient in java, but he did not ask, just wait.
Two sides:
- The two sides are obviously more difficult, and the interview manager should be the leader. He prefers to listen to the blow-up architecture. He just created a smart home project from the web Background, client, hardware, and other aspects, the logic on the hardware side is blown down, including Bluetooth, HTTP/IP protocol for wifi, passthrough, and infrared sensors. Then on the web Background, I said I used sevlet, because the client itself mainly needs interfaces, the database uses mysql, and does not ask rollback (), and then shows the client to him. It is really ugly, no artist (this is not the focus ), one important point in my project is to wake up the server background push when the hardware is triggered. First, after hardware identification, the serial port reads and writes data to the MCU and the MCU writes the data to the wifi buffer zone, wifi uses HTTP to transparently transmit data to my server (you can use TCP/IP). The server gets the mac ID and pushes it to the TAG (home ID) or the user (Alias)
- When it comes to pushing, let's take a good look at the implementation principles.
- 1: In the pull mode, the http persistent connection or socket can be configured with the polling interval. The disadvantage is poor timeliness.
- 2: push method, good real-time performance, method 1, google's own push platform (poor Network), method 2, xmpp protocol (based on XML ). In fact, the package is better. There is an open-source package named asmark, which contains the XmppConnection push library. Many companies use its own package library, but the open-source demo only supports pushing, there is no delayed push, and the message is saved temporarily. Method 3: Use a third-party
- Algorithm: it is the merge of two ordered arrays. It can be solved by O (n) with two pointers at a time.
- LruCache: Install B first. Let's talk about the difference between what I wrote and the google V4 package. There is no trimToSize method, and no sizeof () is used to calculate the memory consumption. I mainly rewrite LinkedHashMap, after talking about the LinkHashMap source code, I also read the source code parsing written by others)
Summary:
- The company attaches importance to the basics and Has algorithms for every interview. Although it is not difficult, it is estimated that it is just a look at the code writing specifications.
- Android posts ask more questions about Android, which tends to be performance tuning. It does not require the familiarity of various frameworks as social recruitment does. Instead, it looks at the source code resolution of the frameworks you have used.
- In the spam session, let's talk about it, hey
- I hope everyone can get an offer.
- Attach the legendary BALCONY:
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.