A restaurant operates daily from a specified opening time (open) to closing time (close) with a fixed seating capacity (capacity).
Given a list of existing reservations sorted by reservation start time, where each reservation is represented as [<reservation_start>, <reservation_end>, <seats>] triple, indicating the reservation period and number of seats reserved.
Ask AI Assistant

Ask AI Assistant
Ask me anything about this coding question!
Test Cases
Input
Output
Expected