Last month’s interview.
Phone interview:
Given a list of words, identify “compound words.” For example:
[“ubereats”, “uber”, “eats”, “breadcrumb”, “bread”, “crumb”]
ubereats = uber + eats
breadcrumb = bread + crumb
There are many details that can be clarified, such as whether only two words need to be combined (are there examples like abc = a + b + c), whether reusability is allowed, and what format the return value should be.
On-site interview:
Total of 5 rounds
Task Runner variation: In addition to providing a tasks array, dependencyPairs are also given (e.g., [a, b] means b can only run after a is completed, if there is also [c, b], then b must wait for both a and c to finish before starting), the requirement is to run all tasks based on their dependencies, with the ability to run concurrently.
Nested comment list: Create a comment list similar to WordPress, allowing for adding comments, replies (which can be nested to N levels), editing comments and replies, and deleting comments and replies. Follow-up includes supporting sorting.
System design: Similar to Google Calendar.
Past system design: Delve deep into previous projects, the larger the scope, the more detailed the discussion.
Behavioral Questions: Nothing particularly noteworthy, specific questions cannot be recalled.
Seeking advice and insights.