I graduated from 19 years after graduation has been working in a home in shenzhen factory, the company is mainly do some internal system, while the wave yue four is going to change my working, contact more partial to the C, also prepared a come back and forth, including algorithm and handwriting and so on, this article mainly tells the shopee, YY, The face of enterprise wechat ~
Shopee (toC)
One side
Shopee’s words are more basic and partial, and each side will have an algorithm, listen to the interviewer said that the proportion of algorithm is relatively large.
XSS and CSRF causes, how to avoid juejin.cn/post/684490…
Vue bidirectional binding principle (2.0 and 3.0),3.0 why use proxy
Major changes to vue3 juejin.cn/post/691000…
Vue life cycle, can beforeCreate get data? Can created get data? How do I get the DOM at Created? [Next-TICK event loop]
The difference between http1 and http2 yuchengkai.cn/docs/cs/#ht…
HTTPS yuchengkai. Cn/docs/cs / # ht…
How do you manipulate arrays in VUE to update views and add new properties to objects?
How does Vue Dom Diff compare
Margin overlap of CSS [BFC]
Browser cache [strong cache, negotiated cache], do not cache which attribute to set
Scan code login principle.
What performance optimizations have been made
How to optimize mobile render long lists
Features of mobile terminal adaptation solution
Type conversion related {}+{} results
If ([]){XXXXX} is executed?
If ({}){XXXXX} is executed?
Why is that?
Deep copy
Cross domain problem, resolution, precheck request notice
Algorithm: find a number of ordinary roots, keep three decimal places [no ideas, so change a problem, look at the back, with dichotomy can solve]
Leetcode-cn.com/problems/sq…
Algorithm –> Transforms an array object into an input similar to that of a cascading selection box
Const input = [{province: 'in guangdong, the city:' shenzhen 'area:' the baoan}, {province: 'in guangdong, the city:' shenzhen 'area:' nan shan '}, {province: 'in guangdong province, city, shantou, area: "chaoyang"}, {province:' in guangdong, the city: guangzhou, area: 'the tianhe}, {province: zhejiang, city: hangzhou, area:' west lake '},]Copy the code
Const output = [{value: 'bao-an ', children: [{value:' bao-an '}, {value: 'bao-an'}]}, {value: 'shantou, children: [{value:' chaoyang '},]},]}, {value: 'zhejiang' children: [{value: 'in hangzhou, the children: "west lake",}]}]Copy the code
Second interview
Second interview, mainly based on the resume to ask
According to the resume, ask the relevant concept of JS stack
Var a = function b(){} www.zhihu.com/question/26…
Why are strings in JS on the stack?
What data structure is a heap?
According to the resume, I asked questions about file uploading
According to the resume, ask about web Component (is shadow DOM used elsewhere in daily work?)
Algorithm: binary tree correlation Leetcode199 leetcode-cn.com/problems/bi…
Already get offer
YY(hago)
One side
What problems do you encounter in the work and how to solve them? It is best to reflect your technical depth.
How to solve the cause of margin overlap?
Two types of box-sizing, and their differences.
How to understand generics in TS? How does it work?
What is configured to use TS in a VUe2.0 project?
What is the difference between REM and EM?
Talk about caching in HTTP. How do you use it in development?
How do you keep your code maintainable on a project?
Code problem: nine grid, can only go up and down the grid around the grid, the other way is illegal, with the code to judge, their abstract input and output.
Second interview
Talk about the program
Let’s talk about the nextTICK principle. What are the application scenarios of NextTICK
Vue3 new features
Cross-domain problem
Http2 differs from HTTP1.1
You were talking about head compression, can you talk about how it works
You just said TLS, can you say this process, why to establish a link when using asymmetric encryption juejin.cn/post/684490…
The principle of Base64 encoding, why is there base64 encoding
How do I handle cookies? How do I request cookies
Cookie and localStorage, sessionStorage
Have you known the principle of CDN? Juejin. Cn/post / 684490…
Css3 animation know
Already get offer
Enterprise WeChat
One side
One day the interviewer gave him four questions and forty minutes.
- Shuffle algorithm: shuffle 52 cards, as far as possible shuffle, and the original card can not be repeated in the original position
- Given a string, write code that tests whether the string’s parentheses are fully closed.
[()]{}{[()()]()} - true
[(()] - false
Copy the code
- Existing old and new arrays, the old array through a series of operations (including adding, deleting, moving, etc.) to get the new array. Implement a function to find a list of operations that should be performed on the old array.
const nodes = ['A', 'B', 'C', 'D']; const after = ['B', 'A', 'E', 'D', 'C']; const operations = []; Function diff(Nodes, after) {} function diff(Nodes, after) {}Copy the code
- Array A [N], which holds numbers 1 through n-1, one of which is repeated once. Write a function to find the number being repeated. The time complexity must be O(N), and the space complexity cannot be O[N]. Int find(int a[], int N)
Next up is the interview
Ask questions about the project
How do vUE parent and child components communicate
What optimizations have been made with Webpack (development and production)
The tree – shaking principle juejin. Cn/post / 684490…
Differences between Node and browser event loops
Why does vUE use virtual DOM? What are the pros and cons?
How does Dom Diff compare? Zhuanlan.zhihu.com/p/362539108 from left to right or from right to left
Describe the principles and application scenarios of anti-shake and throttling.
Tell us what you know about closures and how they can be used.
Let’s talk about the difference between HTTP and HTTPS.
Have you heard about WebAssembly?
Made three algorithm questions or failed, some questions the interviewer said time complexity does not meet the requirements, have to say, wechat algorithm requirements are really high, we still have nothing to brush algorithm 🤕🤕🤕