Categories
interview

Meeting Rooms II

Given a list of meetings, that may or may not overlap, calculate the total number of rooms that are required to conduct all the meetings according to the schedule.

Java

Runtime Complexity: O(nlog(n))

Space Complexity: O(n)

Javascript (ES6)

Demo