Facebook phone interview, Contributing to make this a stronger community
Company: Meta (Facebook)
Role: unknown
Interview Stage: Phone Screen
Location: unknown
Year: unknown
Original Post Content:
Contributing to make this a stronger community. Please consider the same if you are benefited from LeetCode.
Facebook phone interview
Interviewer was super friendly, I was 5 minutes late due to work.
I was asked the following :
1) https://leetcode.com/problems/buildings-with-an-ocean-view/
Interviewer -> followup, what if the ocean is on the right and left too. Interviewer -> How would you do this in a single pass, you don't have to write code, explain me your thought process until the time is up for this question
Me -> Solved the question, with the basic structure. But struggled a bit on the followup, got basic observations right on the followup though. Interviewer thought I was going in a good direction
2) https://leetcode.com/problems/word-break-ii/
Interviewer -> Solve without using memoization or DP, if we have time we can add them later.
Me -> I explained the solution well. Started to code and we had 30 seconds left and I had few lines of code left. He asked me since there is no time type in and explain what code you would write for the last few lines.
Fingers Crossed. Waiting for the result