Facebook Phone Screen (London)

Anonymous User
3328
Jun 30, 2021
Jul 01, 2021

I had a 45 min facebook phone screen on 29/06/2021 for a product role at London Office. I was asked two question.

1st Question: https://leetcode.com/problems/find-k-closest-elements/

I proposed the solutuon using Binary Search but the implementation wasn't 100% correct. I ran out of time during the end of code and interviewer said to move to next question. He told there is something wrong and we can dry run at the end if we had time at the end

2nd Question: https://leetcode.com/problems/binary-tree-right-side-view/

I solved it in time using BFS. The code was correct and I was able to verify by doing a dry run. Interviewer asked me a followed up: how can we do it with DFS (no need to code)? I gave a solution but he said it is the right path but you are complicating it.

At the end time was finished so interviewer said there is some problem with 1st code but we ran out of time.

I just realised while creating this post the question were directly from leetcode. I mean even the input/output was same as leetcode question.

Comments (3)