Facebook Screening round E5 position for London
Company: Meta (Facebook)
Role: e5
Interview Stage: Phone Screen
Location: London
Year: unknown
Original Post Content:
I was asked below questions in the screening round, I discussed all the assumptions and edge cases with the interviewer before writing the code & proposed multiple solutions for them. Also I asked interviewer if he would like me to implement the solution using iterative or recursive way.
I kept talking while writing the solutions and did dry run for 3-4 testcases (1 positive, 1 negative and 2 edge scenarios) for each problem.
1) Verify an alien dictionary Interviewer slightly changed the question by providing array of characters as dictionary rather than the String as in the original question.
2) Lowest common ancestor in binary tree
3) Design tic tac toe
I was able to finish all the three questions in 35 minutes (total interview duration was 45 minutes). I am surprised as the interviewer asked me 3 questions in 1 round, preparing now for the loop interview.