Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

<< [21] Number of classrooms required given schedule >>

Given an array of time intervals (start, end) for classroom lectures (possibly overlapping), find the minimum number of rooms required.

Example:

>>> coding_problem_21([(30, 75), (0, 50), (60, 150)])
2