PracHub
QuestionsLearningGuidesInterview Prep
|Home/Coding & Algorithms/Bytedance

Find the Minimum Number of Meeting Rooms

Last updated: Jul 22, 2026

Quick Overview

Find the minimum number of rooms needed for unsorted meeting intervals, with an ending meeting allowed to share a room with one starting at the same time. Practice sweep-line or heap reasoning, precise tie handling, overlapping intervals, duplicate boundaries, empty input, and large-scale time complexity.

  • hard
  • Bytedance
  • Coding & Algorithms
  • Software Engineer

Find the Minimum Number of Meeting Rooms

Company: Bytedance

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: hard

Interview Round: Technical Screen

# Find the Minimum Number of Meeting Rooms You are given meeting intervals `[start, end]`, where `start < end`. A room can host at most one meeting at a time, and a meeting ending at time `t` does not conflict with another meeting starting at time `t`. Return the minimum number of rooms required to host every meeting. ## Function Signature ```python def minimum_meeting_rooms(intervals: list[list[int]]) -> int: ... ``` ## Constraints - `0 <= len(intervals) <= 200_000` - Every interval contains exactly two integer times between `-1_000_000_000` and `1_000_000_000`, inclusive. - `start < end` for every meeting. - Input intervals may be unsorted and may share start or end times. ## Examples ```text Input: intervals = [[0, 30], [5, 10], [15, 20]] Output: 2 ``` ```text Input: intervals = [[7, 10], [10, 12]] Output: 1 ``` ```text Input: intervals = [] Output: 0 ```

Quick Answer: Find the minimum number of rooms needed for unsorted meeting intervals, with an ending meeting allowed to share a room with one starting at the same time. Practice sweep-line or heap reasoning, precise tie handling, overlapping intervals, duplicate boundaries, empty input, and large-scale time complexity.

Related Interview Questions

  • Remove Duplicate Letters Lexicographically - Bytedance (medium)
  • Elements Occurring More Than n/3 Times in a Sorted Array - Bytedance (medium)
  • Least Frequently Used (LFU) Cache - Bytedance (hard)
  • Course Schedule Feasibility - Bytedance (hard)
  • Find the Best Word for a Query Suffix - Bytedance (hard)
|Home/Coding & Algorithms/Bytedance

Find the Minimum Number of Meeting Rooms

Bytedance logo
Bytedance
Apr 28, 2026, 12:00 AM
hardSoftware EngineerTechnical ScreenCoding & Algorithms
0
0

Find the Minimum Number of Meeting Rooms

You are given meeting intervals [start, end], where start < end. A room can host at most one meeting at a time, and a meeting ending at time t does not conflict with another meeting starting at time t.

Return the minimum number of rooms required to host every meeting.

Function Signature

def minimum_meeting_rooms(intervals: list[list[int]]) -> int:
    ...

Constraints

  • 0 <= len(intervals) <= 200_000
  • Every interval contains exactly two integer times between -1_000_000_000 and 1_000_000_000 , inclusive.
  • start < end for every meeting.
  • Input intervals may be unsorted and may share start or end times.

Examples

Input: intervals = [[0, 30], [5, 10], [15, 20]]
Output: 2
Input: intervals = [[7, 10], [10, 12]]
Output: 1
Input: intervals = []
Output: 0

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More Coding & Algorithms•More Bytedance•More Software Engineer•Bytedance Software Engineer•Bytedance Coding & Algorithms•Software Engineer Coding & Algorithms
PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • AI Coding Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.