Facebook | Phone | Merge Sorted Arrays & Reconstruct Itinerary
Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2020-05-26Added By Anonymous
Source: Link
Company: Meta (Facebook)
Role: e4
Interview Stage: Phone Screen
Location: London
Year: 2020
Original Post Content:
Status: Experienced, Non FAANG, India
Position: Software Engineer (Android)
Location: London
Date: May, 2020
Technical phone screen (45 minutes including 5-10 mins of technical snag :| ):
1. Merge sorted arrays in place
Similar to https://leetcode.com/problems/merge-sorted-array/
Solved in 5-7 mins.
2. Reconstruct the itinerary
A variation of https://leetcode.com/problems/reconstruct-itinerary/
Tried solving it using a HashMap only approach, shared the approach which was approved by the interviewer but could not finish coding it in time.