Airbnb phone screen - passed
Just finished my Airbnb phone screen and wanted to share since I'm moving forward.
Got the property booking system question. You have n listings with available date ranges, and you need to find all the ways to cover a user's requested date range. Can use either a single listing or split between two listings.
The tricky part was handling all the different cases. When can you use just one listing vs when do you need to split? How do you make sure there's no gaps or overlaps when splitting? Had to think through the logic pretty carefully.
I used an approach that checks single listings first, then looks at split options. Ended up being cleaner than I initially thought once I got the conditions right.
For complexity it was O(n²) in worst case for checking all combinations. Mentioned a few optimizations but interviewer said the straightforward solution was fine.
Got the email today that I passed. Moving to onsite rounds next.