Core Idea
The number of rooms needed is the maximum number of meetings active at the same time.
Algorithm
Sort start and end events, or sort meetings by start time and keep a min-heap of current end times. Reuse a room when the earliest ending meeting has finished.
Common Mistakes
Handle equal endpoints according to the statement. If a meeting ending at time t frees a room for another starting at t, process the end first.