Facebook | Follow-up phone interview | Merge sorted array, Simplify path

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2021-11-11Added By Anonymous
Source: Link

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

Original Post Content:

Position: SDE new grad

Question 1: https://leetcode.com/problems/merge-sorted-array/
Question 2: https://leetcode.com/problems/simplify-path/

For the first question I solved using additional O(N) array. But they asked to solve using O(1) space.

You need to solve both questions in 40 minutes.
There is a 5 minutes for the questions at the end of the interview.

Comments