当前位置:网站首页>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 !
边栏推荐
- Tutorial on the use of Huawei cloud modelarts (with detailed illustrations)
- Lua EmmyLua 注解详解
- How is the entered query SQL statement executed?
- 【209】go语言的学习思想
- 机器学习概念漂移检测方法(Aporia)
- [mathematical modeling of graduate students in Jiangxi Province in 2022] analysis and code implementation of haze removal by nucleation of water vapor supersaturation
- Halcon模板匹配
- Imitation of numpy 2
- 学习路之PHP--phpstudy创建项目时“hosts文件不存在或被阻止打开”
- Neglected problem: test environment configuration management
猜你喜欢
Deleting nodes in binary search tree
[mathematical modeling of graduate students in Jiangxi Province in 2022] analysis and code implementation of haze removal by nucleation of water vapor supersaturation
VMware Tools和open-vm-tools的安装与使用:解决虚拟机不全屏和无法传输文件的问题
Digital "new" operation and maintenance of energy industry
力扣刷题日记/day7/6.30
Wanghongru research group of Institute of genomics, Chinese Academy of Agricultural Sciences is cordially invited to join
With an estimated value of 90billion, the IPO of super chip is coming
Numpy 的仿制 2
Crawler (6) - Web page data parsing (2) | the use of beautifulsoup4 in Crawlers
Scala基础教程--18--集合(二)
随机推荐
celebrate! Kelan sundb and Zhongchuang software complete the compatibility adaptation of seven products
Li Kou brush question diary /day5/2022.6.27
Halcon模板匹配
力扣刷题日记/day2/2022.6.24
[cloud voice suggestion collection] cloud store renewal and upgrading: provide effective suggestions, win a large number of code beans, Huawei AI speaker 2!
Large scale service exception log retrieval
Mysql5.7 installation tutorial graphic explanation
MySQL common add, delete, modify and query operations (crud)
[HCIA continuous update] WAN technology
基于NCF的多模块协同实例
An example of multi module collaboration based on NCF
项目通用环境使用说明
Scala基础教程--19--Actor
[go language question brushing chapter] go conclusion chapter | introduction to functions, structures, interfaces, and errors
力扣刷题日记/day8/7.1
MySQL常用增删改查操作(CRUD)
Imitation of numpy 2
未来几年中,软件测试的几大趋势是什么?
TorchDrug教程
6.26CF模拟赛B:数组缩减题解