Facebook | Phone Screen | London | E4

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2019-11-05Added By Anonymous
Source: Link

Company: Meta (Facebook)
Role: E4
Interview Stage: Phone Screen
Location: London
Year: unknown

Original Post Content:

Hi

I had Facebook's phone screen round today which consisted of 2 questions. The interview lasted for around 40 minutes.

1 - Maximum Subarray I explained and coded the most optimal solution for the question in around 5-6 minutes.
2 - Lowest Common Ancestor of a Binary Tree with addition of Parent pointer I explained and coded the most optimal solution for the question in around 10-12 minutes. There was one bug where I was calculating the height recursively which took O(N) space and I quickly realised my mistake when the interviewer pointed it out that I was using O(N) space instead of O(1) and accordingly I made my code iterative.

At last I discussed the role with the interviewer for like 15 minutes. What do you guys think? Do I have disadvantage If I knew these questions beforehand?

Comments