Meta E4/E5 Onsite Interview | USA | Infra - Rejected

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2025-03-12Added By Anonymous
Source: Link

Company: Meta
Role: E4/E5
Interview Stage: Onsite
Location: USA
Year: unknown

Original Post Content:

Overall Comments

Do not skim over the hard questions in the last 6 months list. Based on other posts and even I might have not paid more attention to HARD and DP questions.

Advise from interviews:

Coding:
1. Hard coding questions might have less weightage compared to medium/easy questions. They are mostly there to see your problem solving skills.
2. Keep practicing for proper communication, including asking clarifying questions and verification. On leetcode. Try to think of what questions you would ask.
3. Do not keep quite while thinking.

Behavioral:
1. Behavioral mock interviews are really important. I can now see that I was always underprepared for them.
2. Include learning in the example. Like, how you utilized the learning from your experience in other experiences. Due to this I feel CARL is better than STAR.
3. Ask ChatGPT if your example is good enough for position and company.

Design:
Just use hellointerview to prepare. I do not have more advise to give than that website.

Screening

#75 Sort Colors [Medium|Variant]: Color rgb instead 012.

Explained brute-force approach and complexity, explained 3 pointer approach and complexity. Interviewer was okay with the solution so I coded that. Made a small mistake of sorting with rbg instead of rgb. Corrected it quickly

#543. Diameter of Binary Tree [Easy|Variant]: Nodes instead of edges count for diameter.

Explained the solution and gave complexities. Coded, went through 3-4 test cases. Made mistake but corrected of counting edges instead of nodes.

Onsite

System Design

Facebook status and search: In the interview, I went though the usual - functional req, non-functional req, core entities, APIs, high level design etc. He kept asking a lot of questions in between.
Requirements were just as follows:
- User creates status which include only texts
- Another user is able to search for the statuses.
- Search should be sorted by recency.
1B status posted per day
10M searches supported per second.
Store the status infinitely.
At the end, I thought I did a really poor job as I was not able to focus on a ddb design aspects due to time constraints.

Coding 1

#1209 Remove All Adjacent Duplicates In String 2 [Medium|Variant]: The variant was to remove all adjacent duplicates (candy crush) but on asking more questions, interviewer mentioned it can have any ASCII characters, all are to be treated differently and only as single characters, so no double digit numbers. I explained the stack solution and gave complexities. But while coding, I fumbled at a few places and ended up rewriting atleast 4-5 statements while verifying. The time was less but I managed to go through 3 test cases and convince the interviewer that the code was correct.

#329. Longest Continuous Increasing Path in a Matrix [Hard|Variant]: The variant was to give longest continuous instead of just increasing. Discussed and proposed DFS approach with cache to keep track of repeated path. I fumbled here as well while implementing the code but was ultimately able to get a working code that the interviewer was satisfied with.

Coding 2

#301. Remove Invalid Parentheses [Hard]: I was not prepared for this question and got nervous while explaining this question. I felt the interviewer was not following me, so I became kind of more nervous and started repeating myself. I explained BFS approach and at each level we check for valid paranthesis and move on to next level. If at any level we find valid paranthesis we return the string. I took more time than anticipated and had to write the code really fast. In the end I was able to get the solution and the code working but I do not think I communicated properly about levels in my code.

#56. Merge Intervals [Medium|Variant]: Insted of 1 array, I was given two arrays. So something like
Input: interval1 = [[1,3],[2,6]] interval2 =[[8,10],[15,18]]
Output: [[1,6],[8,10],[15,18]]
I think I was still nervous from first round and it didn't help that the interviewer kept on telling me how many minutes I had left when I was trying to explain the code. I stuttered a lot during the explaination on how we want to compare the start time and the end time. I was able to get the solution by combining the two arrays into one and sorting by start time. Also verify using solution but I am not really sure I communicated properly initially.

Behavioral

1. Can you share a work experience that helped you grow and succeed?
- what challenges you faced and how you handled them
- in hindsight, what would you do differently
2. Time you made a mistake and what you learned from it.
3. Time you had a disagreement with a coworker regarding your design
4. Time you got a constructive feedback.

Follow ups on all the questions based on your answers.

Preparation

Coding: Leetcode meta tagged questions, Discuss section, Hello interview.
System Design: Hello Interview
Behavioral: Youtube mostly, CTCI has a good section on it.

Comments