Meeting Rooms III

There are n rooms numbered 0 to n-1 and m meetings [start, end) with distinct start times. Meetings are allocated as follows:

  1. Each meeting uses the free room with the smallest number.
  2. If no r...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: