Meeting Rooms II

Medium
Arrays Array Sorting Heap Greedy

Given intervals, find minimum number of conference rooms required.

Constraints

1 ≤ intervals.length ≤ 10^4

Examples

Example 1:
Input: 0 30 5 10 15 20
Output: 2
Example 2:
Input: 7 10 2 4
Output: 1
▲ Console

Install Talent Arabia

Get instant access to jobs and career tools on your device.