← Questions

Meeting rooms: find conflicts and the minimum rooms needed

0
AppleCodingLast asked Feb 2026

You get room requests as half-open intervals [start, end). First decide whether a single room can serve all of them (no two overlap). If not, return the fewest rooms needed so every request is met. Sort by start time and keep a min-heap of end times, or sweep over start and end events.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding