Booking.com OA 2024 | Concurrent Room Reservations & Top Rated Destinations
Question · Posted Jun 2026
Problem 1 - Concurrent Room Reservations Problem Statement You are given a 2D integer array bookings, where each booking is represented as: [check_in, check_out] A guest occupies a room starting on the check_in day and frees the room on the morning of the check_out day. If one guest checks out on day X and another guest checks in on day X, they do not overlap. Return the minimum number of rooms required to accommodate all bookings. Constraints Constraint 1 ≤ ...
The full answer & interview discussion are available to premium members.
Log in Create a free account