NewThe Learning module is now liveSee what's new

(This question is a variation of the LeetCode question 253. Meeting Rooms II. If you haven't completed that question yet, it is recommended to solve it first.)

A resource estimation service needs to determine how many machines are required to run a set of tasks. Each task occupies exactly one machine for the duration of its time interval, and a machine can run at most one task at any given time.

Test Cases
Input
Output
Expected