Meeting Rooms
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.
Example
Given intervals =[[0,30],[5,10],[15,20]]
, returnfalse
.
分析
start+1 end-1 每次total>1就不行
也可以不必拆interval,直接排序interval, 如果i.start < i-1.end 就返回false
Last updated