Facebook | Phone interview

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2021-04-21Added By Anonymous
Source: Link

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

Original Post Content:

YOE: 4 years
I was asked these two questions-

1. https://leetcode.com/problems/binary-tree-level-order-traversal/
2. https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses/

Update: The overall experience was good. I was able to code the first one in ~10 min
I was asked to optimize my approach in second question as I was using a stack and another set(to mark invalid parenthesis). With some hints from the interviewer, I was able to come up with an approach to use no extra memory apart from the output string

Result - Moved to next round

Comments