FastPrepMeeting Rooms II
Problems/Meeting Rooms II

Meeting Rooms II

Quince logoQuince● MediumFULLTIMEPHONE SCREEN

Updated Nov 2026

QuestionFunctionExamplesConstraints

Problem statement

Source note: Reported in a Quince phone screen. A report names this well-known task. We chose the function signature, a fixed order for the output, and the input limits. Our version is about 98% the same as the reported question.

You are given meeting time intervals where each row [start, end] uses a half-open interval: a meeting occupies a room from start up to, but not including, end.

Return the minimum number of meeting rooms required so that every meeting can take place. A room whose meeting ends at time t may be reused by another meeting that starts at time t.

Function

minMeetingRooms(intervals: int[][]) → int

Examples

Example 1

intervals = [[0,30],[5,10],[15,20]]return = 2

The meeting [0,30] overlaps both shorter meetings, but the two shorter meetings do not overlap each other.

Example 2

intervals = [[7,10],[2,4]]return = 1

The meetings are disjoint, so one room can host both.

Example 3

intervals = [[1,5],[5,9],[5,6]]return = 2

The room used by [1,5] is available at time 5, while the two meetings beginning at 5 need two rooms together.

Constraints

  • 0 <= intervals.length <= 100000.
  • Each interval has exactly two integers [start, end].
  • 0 <= start < end <= 10^9.

Source note: Author-written prompt excerpt retained for source fidelity.

More Quince interview questions

  • Check a Repeated String as a SubsequenceOA · Seen Aug 2026
  • Minimum Sprinklers to Cover an IntervalOA · Seen Aug 2026

Similar questions at other companies

  • Mutual-Friend RecommendationsMeta · PHONE SCREEN · ONSITE INTERVIEWMeta interview questions
  • Top K Frequent ElementsAmazon · OA · PHONE SCREEN
  • Tennis Court SchedulingAtlassian · PHONE SCREEN · ONSITE INTERVIEWAtlassian interview questions
  • Maximum Number of Events That Can Be AttendedByteDance · PHONE SCREENByteDance interview questions
  • Meeting Rooms IIeBay · PHONE SCREENeBay interview questions
  • Select the Top User MatchesDuolingo · PHONE SCREENDuolingo interview questions
  • Kth Largest Element in an ArrayLinkedIn · PHONE SCREENLinkedIn interview questions
  • Meeting Rooms IISecuronix · PHONE SCREEN
  • Merge Multiple Sorted StreamsNVIDIA · PHONE SCREENNVIDIA interview questions
  • Maximum Number of Events That Can Be AttendedSnowflake · PHONE SCREENSnowflake interview questions
All Quince interview questionsSee Quince hiring insights
Saved
class Solution {
    public int minMeetingRooms(int[][] intervals) {
        // Write your code here.
    }

}
Checking account…