Meta Phone Screen

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2025-06-15Added By Anonymous
Source: Link

Company: Meta
Role: unknown
Interview Stage: Phone Screen
Location: unknown
Year: unknown

Original Post Content:

Questions
Q1: https://leetcode.com/problems/merge-sorted-array/description/
Follow-up: Can you merge starting from the beginning of each array instead of from the end? Yes/no - explain with examples.
Also, the size of the arrays were not given.

Q2: https://leetcode.com/problems/group-shifted-strings/description/?envType=company&envId=facebook&favoriteSlug=facebook-thirty-days
No time for follow-ups

Verdict: Selected for on-site.

Tips:
- Eat and breath the top 150 Meta tagged questions.
- Make sure to handle all the edge cases - even the trivial ones. E.g., what will happen if the size of the array is 0, 1 etc.
- Always trace your code with the examples given. Then try to come up with some your own test cases if possible.
- Explain your code line-by-line while writing and explain why you are doing it. For example, if I use a defaultdict instead of normal dictionary, just explain why you are doing that and how it will help. You can do this while writing the code itself.
- Time management is the key. And to manage time, you should practice the questions really well. I had submitted the above two problems at least 5 times in the last week.

Comments