Meta | Phone Screen | US

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2025-04-14Added By Anonymous
Source: Link

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

Original Post Content:

I had a phone screen round recently for Meta. Below are the 2 questions asked:
1. Probability problem - Random city generator with a map input and output a city based on its population divided by the sum of all cities. Map will have city name and its population.
2. String matching problem - given 2 strings, one being alphaneumeric abbreviation and other being bigger string. return boolean if bigger string is satisfies the pattern of smaller string as its abbreviation. For ex. string a = "i18n" b = "internationalization", a = "8" b = "Facebook", a = "a2b3c" c = "aaabbbbc"

Comments