Contributing to make this a stronger community. Please consider the same if you are benifitted from leetcode.
Facebook phone interview
Interviewer was super friendly I was 5 minutes late due to work.
I was asked the following :
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 dont 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
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 have 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 last few lines.
Fingers Crossed. Waiting for the result