insert-interval

class Solution {
public:
    vector insert(vector &intervals, Interval newInterval) {
        vectorres;
        int i=0;
        for(;iintervals[i].end)
                res.push_back(intervals[i]);
            else if(newInterval.end

你可能感兴趣的:(insert-interval)