Practice Meeting Rooms III
Read the task, work through the examples, and check your approach against the constraints. Use the original LeetCode task for coding and submissions.
Problem Statement
There are n rooms numbered 0 through n - 1. Process meetings [start,end] in their distinct original start-time order, with end excluded. Assign a meeting to the lowest-numbered free room; if none is free, delay it until a room frees up, preserving its duration and using the lowest room number on a tie. Earlier original starts have priority among waiting meetings. Return the room holding the most meetings, breaking ties by lowest number.
Source: Meeting Rooms III on LeetCode. Use the original task for its coding environment and submissions.
Examples
# Example 1
n = 2, meetings = [[0,10],[1,5],[2,7],[3,4]]
0
# Example 2
n = 3, meetings = [[1,20],[2,10],[3,5],[4,9],[6,8]]
1
Constraints
Related LeetCode Problems
Practice more problems similar to Meeting Rooms III.
Review your practice with PhantomCodeAI
After trying the problem yourself, use the app to discuss your approach, complexity, and edge cases.