Meta(Facebook)| Phone Screen | E5 | USA

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2022-02-26Added By Anonymous
Source: Link

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

Original Post Content:

Hello,

Long time lurker, just wanted to give back to the community. Recently gave a phone screen with Meta(Facebook). The following questions were asked.

Basic Calculator II - https://leetcode.com/problems/basic-calculator-ii/
Gave a solution without a stack. Problem was only asking for addition and multiplication. Had a bug in my code, but interviewer was not giving any hints initially. After completing the second problem, he hinted that there's a bug. Fixed it quickly, and he seemed content with my code. Follow up was adding division and subtraction.

Kth Largest Element in Array - https://leetcode.com/problems/kth-largest-element-in-an-array/
Gave a solution with a heap, but also mentioned the quickselect approach along with their time and space complexities. I asked explicitly whether it was okay to implement the heap solution because I wanted to go back and fix the first problem. Follow up was how would it behave with large size input.

YOE: 7

Result: Moving on to on-sites!

Comments