The next video is starting stop.
Meeting rooms ii java.
As soon as the current meeting is finished the room can be used for another.
Suppose we have three meetings.
Meeting rooms easy.
When we see the second meeting we check if its start time is later than the first meeting s end time.
Given an array of meeting time intervals consisting of start and end times s1 e1 s2 e2 si ei determine if a person could attend all meetings.
Meeting rooms ii given an array of meeting time intervals consisting of start and end times s1 e1 s2 e2 si ei find the minimum number of conference rooms required for example.
If you have a facebook interview this question is a must know.
Java solution when a room is taken the room can not be used for anther meeting until the current meeting is over.
Leetcode 253 meeting rooms ii.
There is one meeting room in a firm.
It s not so we need another room.
Meeting rooms ii given an array of meeting time intervals consisting of start and end times s1 e1 s2 e2 si ei find the minimum number of conference rooms required.
We then compare the third meeting s start time with the minimum of first two meetings end times.
Given an array of meeting time intervals consisting of start and end times s1 e1 s2 e2 find the minimum number of conference rooms required.
Facebook s 3rd most commonly asked question.
For example given 0 30 5 10 15 20 return false.