Airbnb | Phone Screen

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2021-06-03Added By Anonymous
Source: Link

Technical Round 1

A coding question which is similar to the below one:

https://leetcode.com/problems/alien-dictionary/solution/


Technical Round 2

Given a paragraph of words, find the minimum window that contains all the keywords in the given order.

Paragraph: I want to work for Airbnb because they provide amazing benefits and career potential to their employees, and their vision and message are stellar examples for other modern companies to follow. The idea of belonging anywhere and championing the mission? That's a great goal.


Keywords: and are for

Minimum window length: 6


Here are the possible windows that contains the given keywords

1* and career potential to their employees, and their vision and message are stellar examples for 2* and their vision and message are stellar examples for 3* and message are stellar examples for


We ignore the below one, as the keywords are not in the given order.

1* for Airbnb because they provide amazing benefits and career potential to their employees, and their vision and message are


This is simiar to https://leetcode.com/problems/minimum-window-substring/solution/

Comments