题目描述
blablabla
样例
class Solution {
public:
bool canAttendMeetings(vector<Interval>& intervals) {
sort(intervals.begin(), intervals.end(), [](Interval a, Interval b){return a.start < b.start;});
for (int i = 1; i < intervals.size(); i++){
if (intervals[i].start < intervals[i-1].end){
return false;
}
}
return true;
}
};