当前位置:网站首页>2022 ByteDance daily practice experience (Tiktok)
2022 ByteDance daily practice experience (Tiktok)
2022-07-04 18:52:00 【Gu Jiaming】
6 Month is too busy , I won't update the technical article this month , To share with you a ByteDance client experience , I hope that's helpful ~
Overall timeline
- 6 month 6 Number , Push your resume on the official website of byte .6 No. In the evening 21 spot 02 branch ,HR Make a phone appointment , About 15 No. In the evening 17:00 interview .
- 6 month 15 No. In the evening 17:00 one side , For an hour .
- 6 month 16 At noon, 11:08 branch ,HR Call once , I have an appointment 6 month 20 No. In the evening 19 Two sides .
- 6 month 20 The night of the March ,18:48 branch HR Little sister called to inform , The interviewer is in a meeting , Need to postpone 15 minute , Change it to 18:15 Two sides , Interview duration 75 minute .
- 6 month 21 At noon, 11:20 about ,HR Little sister, add me to wechat , I thought happiness came , The result is to ask me for three meetings tomorrow -_-!. About 22 Afternoon of 18:00 Call for an interview .
- 6 month 22 No. In the evening 18:00 On three sides , For an hour .
- In the evening ,22 No. In the evening 8:20,HR Call , The process is over , I made an appointment tomorrow afternoon 16:00HR Noodles .
- 23 Afternoon of 16:00HR Noodles , Duration 45 minute .
- 24 At noon, 13:00 Know that the interview has passed ,offer Under approval .
one side : Flying book video surface , An hour

Introduce yourself briefly
Challenging things encountered during the project
Pick two items on your resume
- First project :
Light effect page download 20 Multi frame graph optimization scene : Consider using a queue , Take several pictures at the same time , Instead of for loop .
Advertising page demand : Flash screen file download time ?
- Another project , I simply asked where the chat data exists ?
SharedPreference internals , Why the performance is not good ?
Activity Life cycle of , One Activity Open another Activity The life cycle of experience , Start a transparent Activity Will experience the life cycle .
Activity The boot process .
Have you ever used a memory leak detection tool ?LeakCanary Introduce the principle ? Why? LeakCanary To manually call once gc()?
GC Recycling mechanism ?
View Event distribution mechanism ? The parent class intercepted down After the event , Can subclasses still receive events ?
Write a thread safe static inner class singleton .
Why not volatile Keywords will have thread safety problems ?
volatile How to guarantee the visibility and atomicity of keywords , What is the principle ?
Algorithm : Rainwater collection
Ask questions :
How did I do in the interview today ?
- Not bad , The foundation is very good .
What suggestions do you have for me or where I need to improve ?
- It's pretty good overall .
department base Where is the ?
When will the interview result come out ?
- etc. HR notice
Two sides , Flying book video surface ,75 minute

Introduce yourself briefly
Talking about projects , stay DNF What businesses have been done in the assistant project ? Specific business scenarios ?
What image loading library is used for loading in the project ? If you implement an image loading Library , How do you think ?
- Cache policy : Memory + The local store .
- How to clear expired pictures in your local ? When caching pictures , The effective time of adding pictures to the cache path , The next time the user uses the image to load the Library , Clean up expired pictures .
- Thread pool
Does the project have a scenario of using lists (RecyclerView),RecyclerView Let's talk about the internal principle of ( Cache policy )?
For different types of children View,RecyclerPool Can cache pools be reused ?
- stay RecyclerPool in , Use a two-tier list to store reusable HolderView. The first floor goes through viewType Get the reuse list of the specified type . The second layer is the corresponding type of reusable holderView. The default size of the second level list is 5.
- So the answer is , Different types of holderView, Different cache pools are stored , Therefore, they cannot be reused .
You're using RecyclerView when , How to optimize RecyclerView Page performance ?
- Congzi View Of Xml Start with the structure , Think about how to optimize View The hierarchy of , Reduce View Measurement consumption . Try to cache the data that can be cached .
- If the page user slides very frequently , Customization may be required RecyclerView Cache pool size .
You just mentioned View Measurement consumption , Can you talk about how to optimize it in detail ?
- Try to reduce boys View The hierarchy of , Different ViewGroup Its measurement process is also different , such as , Simple layout LinearLayout Performance ratio of RelativeLayout Higher .
Then I asked View The measurement process of , top View Of MeasureSpec Objects and children View Of MeasureSpec How to create objects ?View What is the measurement process after measurement ?
Then two program questions :
- The first one is related to the task stack , Investigate Activity Start mode of : In stack reuse mode ,taskAffinity attribute .
- The second thread , Ask you how to make multiple threads execute sequentially .
From the second program question to Handler Mechanism , Chat Handler The principle of mechanism ?Handler And Looper Correspondence of ?
Last , An algorithm problem :
Given an unordered array , The value will only have 1,2,3. Ask for in O(n) Sort the array in ascending order in time , Data structures cannot be added ( Array , Linked list ,map), Allow new variables .
namely :[1, 2, 3, 3, 2, 1, 3, 2, 1] -> [1, 1, 1, 2, 2, 2, 3, 3, 3].
The train of thought is : Just put all the smallest 1 Move to the leftmost side of the array , Put all the biggest 3 Move to the far right of the array , It can satisfy one-time traversal to complete sorting . Maintain two indexes , The first index maintains the last one on the left of the array 1 Next position of , The second index maintains the first on the right of the array 3 The previous position of . Then traverse in sequence , Compare the values of elements , Then exchange .
Ask questions :
What is the specific business of our department ?base Where exactly is Shenzhen ?
My interview performance ?
In the next few minutes , gossip , The interviewer asked , Are there any other companies at present , There are a few offer?
At present, I am studying a , How to arrange my internship time ?
On three sides , Flying book video surface , An hour

The third side , I can only say , The noodles are rotten .
It's just noodles 2 Algorithm questions , None of them are made together . It's not difficult , It's the thought that got stuck , I can't believe it , I collapsed. .
The first , Play poker , Take one at a time , Then put the next one at the back , Then draw the next one in sequence , Repeat the above operation . Until you finish playing cards in your hand .
There is another one in the middle : every other k Elements , Rotate the linked list once . I will answer this question , But the interviewer said java There is no linked list , You have to do it yourself , It's troublesome , So I changed it .
The second way , Realize the root opening . Easy !, I didn't write it out , I'm stupid ! I'm really stupid !
Three sides come down in an hour , There are only three questions left in my heart : Who am I ? Where am i? ? Where am I going ??
Wry smile, hahahaha ...
Ask questions :
( I'm stupid after meeting , I don't know what to ask , Asked two random questions , The interviewer saw that I was depressed , And comforted me , It will be seen from the results of other two sides , Not necessarily .)
My interview performance ?
Any suggestions ?
After the third side , Is this the end ? did not !!
I'm still doing poorly for the interview , Low mood , When you are ready to go out of the dormitory and find something to do , There is a call from Sichuan .
Sichuan phone ? Who? ? Could it be that a few days ago 618 I haven't picked up the express I bought , Brother, call me and let me get it ?
Whatever , Answer
“ feed , Hello ?”
“ EH , Hello , Is this Gu Jiaming ? I'm Tiktok HR”
My heart , Um. ?! Should not ? Or did you send a thank-you letter so soon ?
“ Um. , Yes ”
“ Um. , Your interview process has been completed , Next, I'll make an appointment with you HR Noodles oh , Are you free tomorrow afternoon ?”
My heart ,!!!!!!!!!!!!!!!!!!!!
“ Wow, wow , I'm free tomorrow afternoon !”
My god ! I didn't expect there was another story ! I must have performed well on the first two sides , My god !!!!

Look at the picture to know my mood ~ Ha ha ha
HR Noodles , Flying book video surface ,45 minute
Mainly talking . Asked a lot of questions about the development project during the internship , For example, the difficulties you encounter when developing this project ? How did you solve it ? What impressed you in the development process ? What to do in case of disagreement in the development process .
If time goes back to when you just started your internship, it will , What adjustments will you make ?
If two colleagues quarrel , What should you do at this time ?
What is your technical plan after you enter the company ? You think after you enter bytes , How long does it take to get started ?
If you enter the company , Find that the people around you are better than you, or that you are not as good as you think , How would you react ?
For those who are better than you , How do you improve yourself to catch up with him ? How to learn ?
If you enter byte internship , Your last internship , How does it help you practice in byte ?
How do you arrange your spare time ?
When can I start my internship , How long can I practice ?
Are there any other companies you are meeting now ? Which companies did you vote for ? There's something else in hand offer Do you ?
Ask questions
What is the working schedule of the company ?
24 The internship will last until next year , Is there any chance of becoming a regular ?
Last ,HR The next day , I learned at noon that the interview has passed , Check the application record process on the official website , Interview completed :

Brother dei, If you think I wrote well , Please do me a favor
- Give me some praise , Inspire me , At the same time, this article can be seen by more people ,(#.#)
- Don't have to Collection , Hey, don't order , Why did you order ? I'm so sorry !
- Oh ! also , I maintain a Routing Library .. Nothing else , Just mention , I maintain a Routing Library =.= !!
Come on come on , Thank you !
边栏推荐
- Once the "king of color TV", he sold pork before delisting
- Detailed explanation of the maturity classification of ITSS operation and maintenance capability | one article clarifies the ITSS certificate
- With an estimated value of 90billion, the IPO of super chip is coming
- Lua emmylua annotation details
- TCP waves twice, have you seen it? What about four handshakes?
- Just today, four experts from HSBC gathered to discuss the problems of bank core system transformation, migration and reconstruction
- 如何使用 wget 和 curl 下载文件
- 用于图数据库的开源 PostgreSQL 扩展 AGE被宣布为 Apache 软件基金会顶级项目
- Journal des problèmes de brosse à boutons de force / day6 / 6.28
- Li Kou brush question diary /day2/2022.6.24
猜你喜欢

Scala基础教程--20--Akka

能源行业的数字化“新”运维

TCP两次挥手,你见过吗?那四次握手呢?

The money circle boss, who is richer than Li Ka Shing, has just bought a building in Saudi Arabia

激进技术派 vs 项目保守派的微服务架构之争

Halcon模板匹配

How to modify icons in VBS or VBE

中国农科院基因组所汪鸿儒课题组诚邀加入

Wanghongru research group of Institute of genomics, Chinese Academy of Agricultural Sciences is cordially invited to join

Halcon template matching
随机推荐
Li Kou brush question diary /day2/2022.6.24
Tutorial on the use of Huawei cloud modelarts (with detailed illustrations)
Thawte通配符SSL证书提供的类型有哪些
Grain Mall (I)
【云端心声 建议征集】云商店焕新升级:提有效建议,赢海量码豆、华为AI音箱2!
力扣刷题日记/day6/6.28
Summary of subsidy policies across the country for dcmm certification in 2022
怎么开户才是安全的,
Scala基础教程--18--集合(二)
蓝桥:合根植物
一直以为做报表只能用EXCEL和PPT,直到我看到了这套模板(附模板)
Deleting nodes in binary search tree
Once the "king of color TV", he sold pork before delisting
线上MySQL的自增id用尽怎么办?
提升复杂场景三维重建精度 | 基于PaddleSeg分割无人机遥感影像
Wanghongru research group of Institute of genomics, Chinese Academy of Agricultural Sciences is cordially invited to join
[2022 Jiangxi graduate mathematical modeling] curling movement idea analysis and code implementation
TCP waves twice, have you seen it? What about four handshakes?
MySQL常用增删改查操作(CRUD)
Android uses sqliteopenhelper to flash back