vector<vector<int>> merge(vector<vector<int>>& intervals) {
vector<vector<int>> res;
if (intervals.empty()) return res;
sort(intervals.begin(), intervals.end(),
[&, this](vector<int> &v1, vector<int> &v2) { return v1[0] < v2[0];});
作者:zgdgod
链接:
https://leetcode-cn.com/problems/merge-intervals/solution/cpai-xu-by-zgdgod/来源:力扣(LeetCode)
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
--
FROM 218.82.62.*