</>OfferRetriever
DashboardDiscuss
NEW

Spring Hire Sale

Limited Time Deal: Unlock all premium questions for over 30% off

$10.42$7.08

08

:

04

:

45

:

30

Get this deal
Back to Dashboard

Coworking Desk Availability

Medium

A co-working space manages desk reservations throughout the day. Given the space's operating hours, its total desk capacity, and a list of bookings, compute all contiguous time intervals within operating hours and the number of desks available during each interval.

A booking reserves a given number of desks from a start time (inclusive) to an end time (exclusive). Multiple bookings can overlap. Available desks in an interval = capacity minus the total desks reserved by all bookings that overlap that interval. ...