FastPrepMinimum Additional Meeting Rooms
Problems/Minimum Additional Meeting Rooms

Minimum Additional Meeting Rooms

Apple logoApple● MediumNEW GRADPHONE SCREEN

Updated Nov 2026

QuestionFunctionExamplesConstraints

Problem statement

Source note: Reported in an Apple new grad phone screen. The report asks how many rooms to add to one existing room, for requests that include the start and exclude the end. It did not share numeric limits or what to do for empty input. We chose those. Our version is about 98% the same as the reported question.

There is initially one meeting room. Given requests as half-open intervals [start,end), return the minimum number of additional rooms needed to serve every request.

Each room serves at most one request at a time. A room is free at a request's end time, so another request may start at that exact time. Requests may be given in any order. Return 0 when the existing room is enough, including for an empty list.

Function

minimumAdditionalRooms(requests: int[][]) → int

Examples

Example 1

requests = [[0,30],[5,10],[15,20]]return = 1

From time 5 to 10, two requests are active. Two rooms are sufficient for the whole list, so the existing room needs 1 additional room.

Example 2

requests = [[0,5],[5,10],[5,7]]return = 1

The request ending at time 5 releases its room before the two requests starting at that time. The peak is two rooms, which means 1 additional room.

Constraints

  • 0 <= requests.length <= 10^4.
  • Every request contains exactly two integers.
  • Every endpoint is between 0 and 10^9, inclusive.
  • For every request, start is strictly less than end.

More Apple Phone Screen questions

  • LRU CachePHONE SCREEN · ONSITE INTERVIEW · Seen Dec 2026
  • Topological OrderingPHONE SCREEN · ONSITE INTERVIEW · Seen Nov 2026
  • Merge IntervalsOA · PHONE SCREEN · ONSITE INTERVIEW · Seen Nov 2026
  • Subarray Product Less Than KPHONE SCREEN · Seen Nov 2026
  • Evaluate DivisionPHONE SCREEN · Seen Nov 2026
  • Reverse a Linked ListPHONE SCREEN · Seen Nov 2026
  • Validate a BST with a Custom ComparisonPHONE SCREEN · Seen Nov 2026
  • Design a Food Rating SystemPHONE SCREEN · Seen Oct 2026
  • Days Until Poisoned Plants StabilizePHONE SCREEN · Seen Oct 2026
  • Capture Surrounded Regions with Union-FindPHONE SCREEN · Seen Oct 2026

Similar questions at other companies

  • Merge Overlapping IntervalsAtlassian · PHONE SCREEN · ONSITE INTERVIEWAtlassian interview questions
  • Peak Chat Load Across AgentsCresta · PHONE SCREENCresta interview questions
  • Meeting Rooms IIeBay · PHONE SCREENeBay interview questions
  • Meeting Rooms IIByteDance · PHONE SCREENByteDance interview questions
  • Majority Labels over Audio IntervalsNooks · PHONE SCREEN
  • Meeting Rooms IIUber · PHONE SCREENUber interview questions
  • Merge IntervalsGoogle · PHONE SCREEN · ONSITE INTERVIEWGoogle interview questions
  • Merge Overlapping IntervalsFurtherAI · PHONE SCREEN
  • Peak Resource Usage Across Weighted IntervalsTekion · PHONE SCREENTekion interview questions
  • Merge Overlapping IntervalsFox Corporation · PHONE SCREEN

Apple interview experiences

  • Apple SWE Phone Screen: Subarray Products: 1 Experience
  • Apple New Grad SWE Java, Coding and Manager Rounds: 1 Experience
  • Apple AI Coding and Related Interviews: 17 Experiences
  • Apple India SWE New Grad Interviews: 5 Experiences
  • Apple New Grad SWE Phone Screens: 12 Experiences (Part 3 of 3)
  • Apple New Grad SWE and Embedded: 16 Experiences (Part 2 of 3)
All Apple interview questionsSee Apple hiring insights
Saved
class Solution {
    public int minimumAdditionalRooms(int[][] requests) {
        // Write your solution here.
    }
}
Checking account…