Anishluke92 / RubySolution

Problem solving using Ruby programming language
0 stars 1 forks source link

Minimum number of rooms required #91

Open danielpaul opened 3 years ago

danielpaul commented 3 years ago

This problem was asked by Snapchat.

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

For example, given [(30, 75), (0, 50), (60, 150)], you should return 2.