Senior FE
- System design, type ahead. Follow-up: If highlighting letters is needed, for example, “b,” and the result contains “bitcoin,” make the first letter “b” bold.
- Product chat, favorite apps, why, and what can be improved. Discuss the advantages and disadvantages of LinkedIn.
- Coding:
- Implement
isParent(node1, node2)
to determine ifnode1
is the parent node ofnode2
. Write it in a minute. When asked if I had done it before, I hadn’t, but I have tackled more challenging tasks. - On the coding website, “Ear Umbrella” with decimals. Follow-up: Write the HTML for a check, and explain the reasons for using various tags.
- Implement
- Coding:
- Memorize function, be mindful of the limitations of
JSON.stringify
, and how to handle them. - Implement
String.prototype.repeat
, where, for example,"abc".repeat(3)
outputsabcabcabc
, with a time complexity of log(N).
- Memorize function, be mindful of the limitations of
- Infinity Scroll, pay attention to the details of throttle. Follow-up: Discuss the pros and cons of various methods. How to handle DOM elements moved off-screen. Known API interface:
/*** API Docs* ---------* /posts?page=0 => [{id: 1, title: "Post 1"}, {id: 2, title: "Post2"}, {id: 3, title: "Post 3"}, N...] /posts?page=1 => [{id: 4, title: "Post 4"}, {id: 5, title: "Post5"}, {id: 6, title: "Post 6"}, N...] /posts?page=N => [N...] */ 6. Behavioral questions discussion.
HR feedback is all “strong hire.” I have another offer but still contemplating.