Facebook | Phone | Verifying an Alien Dictionary

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2020-10-09Added By Anonymous
Source: Link

Company: Meta (Facebook)

Role: Likely E3 or E4

Stage: Phone Screen

Location: Unknown

Year: Unknown


Facebook | Phone | Verifying an Alien Dictionary

# Check if List of String is sorted with custom ordering.

First and foremost, i was able to clear this coding part fairly easily.
discussed how i can use multiple data structures to implement this algorithm

Input:

ListOfString = {"abc", "cab", "bac", "acb"}

CustomOrder = {'c', 'a', 'b'}

Output: False

Put your approach here

  • Also mention how you would sort the algorithm
Comments