Had my Airbnb onsite recently, 4 rounds total and still pending, wanted to write up one of the coding rounds since it stuck with me the most.
Got a scheduling style problem, you're given a date range someone wants covered and a list of listings, each with their own available windows inside that range. Interviewer wanted every way to cover the whole range with just one listing first, and we'd only move on to combos of two if nothing covered it end to end by itself. Took a couple passes just to get through the setup honestly, there was a lot to track before you even got to write anything.
Approach ended up being sort the listings by start date, then walk through with two pointers checking for a single one that spans everything. When that came up empty we paired windows together, made sure the combined coverage had no gaps and no overlap across the whole range. Greedy picking on the earliest valid end date got most of the trickier cases right without brute forcing every pair.
Follow up asked what changes if a listing can repeat itself across the split, which basically meant relaxing the two pointer walk to allow revisiting the same listing twice.
Didn't get to fully finish optimizing before time ran out but talked through the approach on the last part. No word back yet.