Facebook | Phone | Minimum Remove to Make Valid Parentheses

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2019-12-17Added By Anonymous
Source: Link

Company: Meta (Facebook)
Role: SWE
Interview Stage: Phone Screen
Location: Menlo Park
Year: unknown

Original Post Content:

Position: SWE
Location: Menlo Park

So I had my technical phone screen for Facebook last Monday. I got the question
https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses/
I have premium but never made it around to doing this one in particular. Seemed easy at first, but the way my interviewer worded it threw me off. I was able to provide an O(n) solution but problem was it took me 30 mins to figure it out. The other day I emailed my recruiter and asked about feedback which was mixed. They liked how I stumbled through to find the answer but said I needed to practice on being more fluid in the interview (speaking my thoughts out loud). I was nervous AF during the interview but no excuses. They also mentioned using pramp.com to practice technical interviews and then he was like, "yea, instead of waiting a full year he would get in touch with me in about 6 months to reapply." Also ask as many questions as possible before coding, even if it's a stupid one (they pay attention to that). So yea, that's it.

Takeaways:

I don't look at this as a bad thing even though it's a failure; it's more like adding to my arsenal. I know what not to do. FB is very keen about you asking clarifying questions (at least 4) before you even start coding (I asked 3). But I'm gonna keep pushing and see what else is out there. Hope this helps

Comments