You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
10
+
Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],...] (si < ei),
11
+
find the minimum number of conference rooms required.
7
12
8
13
For example
9
14
Given [[0, 30],[5, 10],[15, 20]],
@@ -74,43 +79,42 @@ public int minMeetingRooms(Interval[] intervals) {
74
79
75
80
// Similar to Meeting Room I, using Point class and Priorityqueue
76
81
// Creating a customized class, but makes the problem a bit easier to think.
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.
7
11
8
12
For example,
9
13
Given [[0, 30],[5, 10],[15, 20]],
10
14
return false.
15
+
16
+
Hide Company Tags Facebook
17
+
Hide Tags Sort
18
+
Hide Similar Problems (H) Merge Intervals (M) Meeting Rooms II
19
+
11
20
*/
12
21
13
22
/**
@@ -22,46 +31,47 @@
22
31
23
32
/*
24
33
Thought:
25
-
Use scane line.
34
+
Use scan line.
26
35
Note: special care for edge point: make sure to process all connecting point before shuouting the result.
0 commit comments