Stripe OA Question 2024 July | Intervals & Heap | on-campus
Question · Posted Jun 2026
Question: Meeting Rooms II Problem Statement Given an array of meeting time intervals intervals where intervals[i] = [starti, endi], return the minimum number of conference rooms required. Constraints 1 <= intervals.length <= 104 0 <= starti < endi <= 106 Examples Example 1: Input: intervals = [[0,30],[5,10],[15,20]] Output: 2 Explanation 1: Meeting [0,30] occupies Room 1 all day. Meeting [5,10] starts while [0,30] is still ongoing — needs Room 2. Meeting [15,20] starts after [5,10] ends, so it reuses Room ...
The full answer & interview discussion are available to premium members.
Log in Create a free account