Slack SWE Interview Question 2023 November | Heaps and Intervals | on-campus
Question · Posted Jun 2026
Question 1: Meeting Rooms II Problem Statement Given an array of meeting time intervals intervals where intervals[i] = [start_i, end_i], return the minimum number of conference rooms required to schedule all meetings without any conflicts. Constraints 1 <= intervals.length <= 104 0 <= start_i < end_i <= 106 Examples Example 1: Input: intervals = [[0,30],[5,10],[15,20]] Output: 2 Explanation 1: Sort by start: [0,30],[5,10],[15,20]. Room 1 takes [0,30]. Meeting [5,10] starts at 5 — earliest ending room ends at 30 (still ...
The full answer & interview discussion are available to premium members.
Log in Create a free account