Facebook | Enterprise Engineer | London | December 2021 | (Rejected)

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2021-12-09Added By Anonymous
Source: Link

Company: Facebook
Role: Enterprise Engineer
Interview Stage: Phone Screen
Location: London
Year: 2021

Original Post Content:

Hi, I wanted to share with you my experience I had in the phone interview at Facebook London.

The interview was about 50 minutes. I had 2 questions where I had to solve each one in 20 minutes, so be careful while studying to time yourself to only 20 minutes; this will help you a lot during the interview as this was the main reason I wasn't able to solve.

However, the interview itself was very basic; you just need to practice a lot and be able to write code quickly.

First question: design a function that works like cdir in Linux. The input will be a certain path, and based on that, it should generate the path it would navigate to. I can't remember the exact example I was given, but it's basically conditions and string manipulation.

Second question: Search for a node that is nearest to a given node in a BST. At first, I suggested using Breadth First Search. It was okay, but the interviewer wanted more efficiency, which is supposed to be a normal binary search tree traversal so we can achieve O(log(n)).

The question is also very simple if you've solved a lot of examples here.

Finally, make sure at the day of the interview you are sleeping well, and before the interview you should warm up very well so your mind is sharp when you start the interview.

Good Luck!

Comments