Algorithm · Airbnb · Medium
You are building a booking service for a property management business that provides accommodations for groups. For a requested neighborhood and party size, the service must select properties according to a strict priority order. Implement the BookingSystem class: BookingSystem(String[][] properties) creates the system from the available properties. Each entry has the form [id, neighborhood, capacity]. List book(String neighborhood, int groupSize) processes a request for…
Checking your access…