← Back to companies
[ OK ] Loaded —
[ INFO ]
$ cd
$ ls -lt
01
02
03
04
05
$ ls -lt
01
02
03
04
05
user@intervues:~/$
Given an array of meeting time intervals where each interval is represented as a pair of start and end times [[start_1, end_1], [start_2, end_2], ...] (where start_i < end_i), find the minimum number of meeting rooms required to schedule all meetings without any conflicts.
Constraints:
0 <= start_i < end_i <= 10^8Examples:
Example 1:
intervals = [[0,30],[5,10],[15,20]]2Example 2:
intervals = [[7,10],[2,4]]1Hints:
Note:
(start_i, end_i) is not considered a conflict if end_i <= start_j for any other meeting j.