Staff Engineer Interview Questions

5,866 staff engineer interview questions shared by candidates

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.
avatar

Staff Software Engineer

Interviewed at Wayfair

3.1
Jul 23, 2024

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.

During the coding interview I was presented with a long problem that took about 5-10 minutes to understand including the edge cases, related to payments. If you are able to complete the algo, and pass the test cases, then you would be presented with more problems until you run out of time (1 hour).
avatar

Staff Software Engineer

Interviewed at PayPal

3.6
Oct 13, 2023

During the coding interview I was presented with a long problem that took about 5-10 minutes to understand including the edge cases, related to payments. If you are able to complete the algo, and pass the test cases, then you would be presented with more problems until you run out of time (1 hour).

Viewing 601 - 610 interview questions

Glassdoor has 5,866 interview questions and reports from Staff engineer interviews. Prepare for your interview. Get hired. Love your job.