← All problems

Meeting Rooms II (min conference rooms)

Medium heapssortinggreedyintervals LeetCode ↗
Given an array of meeting time intervals [start, end), find the minimum number of conference rooms required so that all meetings can be held without overlap in the same room.

Hints (0/3 revealed)

Log in to reveal hints progressively.

Complexity

Time O(n log n), Space O(n)

Common pitfalls

  • Counting overlaps pairwise O(n^2)
  • Not sorting by start first

Your solution

Log in to save your code and track progress.