Facebook | Phone screen | E5

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2020-08-04Added By Anonymous
Source: Link

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

Original Post Content:

1. Product of Array Except Self
I proposed the solution using two arrays and was immediately asked the follow up:
"Could you solve it with constant space complexity? (The output array does not count as extra space for the purpose of space complexity analysis.)"
I explained how I'm planning to implement and jumped into implementation. Took 20 minutes to solve and debug the first question.

2. Leftmost Column with at Least a One
I proposed m + n complexity and jumped into implementation right away.
Took 15 minutes to solve and debug the second question.

Result: Cleared phone screen.

Comments