I applied online on Wayfair website on June 21st 2024 I had initial HR screening on June 26th 2024 I had got the first interview scheduled on July 23rd 2024 First round of technical interview was of 1 hour 15 minutes where there was one coding problem and 4 small system design questions Platform used was Hacker Rank and link would be shared during the course of the interview where you would share your screen explaining your thought process.
Suppose we have input data describing relationships between parents and children over multiple generations. The data is formatted as a list of (parent, child) pairs, where each individual is assigned a unique integer identifier. For example, in this diagram, 3 is a child of 1 and 2, and 5 is a child of 4:
10
/
1 2 4
\ / /
3 5 8
\ / \
\ / \
6 7 9
Find the Earliest Ancestor Write a function that, for a given individual in our dataset, returns their earliest known ancestor - the one at the farthest distance from the input individual. If there is more than one ancestor tied for “earliest”, return any one of them. If the input individual has no parents, the function should return null (or -1). Sample input and output: parentChildPairs = [[1, 3], [2, 3], [3, 6], [5, 6], [5, 7], [4, 5], [4, 8], [8, 9], [10,2]]; 8 => 4 7 => 4 6 => 10
Common Clarifications • Any member of the "earliest❞ generation of the input individual's ancestors is an acceptable result.
• No person will appear in the ancestor list twice (via two different relationship paths).
• There are no cycles in the input.
We are building a real time group chat app that consists of a backend server and a frontend web app. Our MVP needs to support multiple users joining a group. When a user is part of a group, that user should be able to send a message to all other users in the group and read all messages posted in the group. How would you design this group chat application, specifically what protocol(s) could be used to communicate between our server and client web app?
We are working on a clone of Facebook. We want to add a numeric count to every post showing how many friends the post" author has at the time of viewing the post, like this:
Marie McWilliams (105 friends) I had a great day today, feeling good! Our database has two tables: USER 'user_id' (primary key) 'name' 'created_date'
USER_RELATIONSHIP 'friendship_id' (primary key, unique to each relationship) 'user1_id' (indexed) 'user2_id' (indexed) 'start_date'
Focusing on the database, how would you implement the friend-count feature? Note we will soon be more popular than Facebook, so the solution needs to scale.
We are working on a clone of Google Docs that allows users to collaborate on documents. Many users can work on the same document at the same time. We have 100 instances of our service running on 100 different machines. Each document needs to be managed exclusively by one instance while it is in use, but one instance can handle multiple documents at once. We have a simple load-balancing system. Because each document has a random numeric ID found in the URL, we use the value of (id % num_instances) to route traffic. For example, with 100 jobs, traffic for document #314814196 is routed to the instance with index 96. How will this system perform as the usage grows?
Which consistency model is more appropriate for each of these applications: strong consistency, or eventual consistency? Why? (Select the best answer that applies for each question)
. An API call that needs to respond within 20 milliseconds, used by a web service to retrieve metadata about a piece of streaming media.
• A web analytics platform recording every single click on a web page.
• A banking system that makes deposits and payments to checking accounts.
The following metrics were computed from 2 interview experiences for the Wayfair Staff Software Engineer role in Bengaluru.
Wayfair's interview process for their Staff Software Engineer roles in Bengaluru is extremely selective, failing the vast majority of engineers.
Candidates reported having very negative feelings for Wayfair's Staff Software Engineer interview process in Bengaluru.