Algorithm · Airbnb · Medium
Problem: Booking Availability and Interval Analysis You are working with accommodation reservation data, including existing stay ranges and a requested date range. Build a utility that can determine whether a requested stay can be accepted and provide basic interval-based booking statistics. Each booking and the query are represented as a pair [start, end], describing the half-open interval from start through, but not including, end. Thus, a reservation ending on a given day…
Checking your access…