Airbnb SSE onsite

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2025-02-06Added By Anonymous
Source: Link

given a list of menu items, how would you pick the most cost optimal option - [ 8.0 : "pizza",

9.0: "pasta",

10.0: "pizza, pasta",

11.0:"burger",

12.0:"burger, pizza, pasta"

]


order is [burger, pizza] and the answer should be 12.0 ["burger", "pizza", "pasta"]


Got this question

Comments