Facebook/Meta | E3 (SDE-1) | Onsite (Dec 2021)

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2022-01-09Added By Anonymous
Source: Link

Company: Meta
Role: E3
Interview Stage: Onsite
Location: unknown
Year: 2021

Original Post Content:

3 Rounds total (2 coding and 1 behavioural)

Round 1 (Coding):
1. Similar question like https://leetcode.com/problems/simplify-path/. I had 2 inputs - Change directory (cd) and current working directory (pwd). Output: Absolute path by cd from pwd.
2. https://leetcode.com/problems/maximum-swap/

Round 2 (Coding):
1. https://leetcode.com/problems/valid-palindrome/
Follow up 1: if a specific charset needs to be matched (a,e,z) and exclude anything else. How would you do it? (Use a hashset for charset to be matched).
Follow up 2: if a string is infinitely large and you cannot load it all in RAM and can only access blocks of string which will contain some k contiguous chars. (Access 1st and last block and keep checking)
2. https://leetcode.com/problems/subarray-sum-equals-k/

Round 3 (Behavioural):
1. Dive deep in previous work experience and college projects.

Got Rejection. Behavioural didn't went well. Common feedback in coding about duplicacy of code.

Comments