Class lecture scheduling


Suppose you're given an array containing intervals for the beginning/end of classroom lectures. Write a function to return the minimum number of classrooms required. You can assume that the lecture times can possibly overlap.

For example, given...

[(45, 100), (0, 60), (70, 130)]

Your function should return 2.


Access restricted

Subscribe to premium account to see the solution.

Get premium now