AirbnbSoftware Engineer · Technical ScreenCodemia practiceImplement a Listing Calendar That Rejects Overlapping Reservations
Design a class for one listing's reservations with book(check_in, check_out, id), cancel(check_in, id), and is_free(day), using half-open day ranges. Booking must fail if it overlaps any existing stay, while back-to-back stays are allowed.
Medium
Coding & Algorithms