zero bullshit solution c++
```\nclass Solution {\npublic:\n    vector> insert(vector>& intervals, vector& newInterval) {\n        intervals.push_back(newInterval);\n        sort(intervals
```\nclass Solution {\npublic:\n    vector<vector<int>> insert(vector<vector<int>>& intervals, vector<int>& newInterval) {\n        intervals.push_back(newInterval);\n        sort(intervals.begin(),intervals.end());\n        vector<vector<int>> res;\n        res.push_back(intervals[0]);\n        for(int i=1;i<intervals.size();i++)\n        {\n            if(intervals[i][0]>res.back()[1])\n                res.push_back(intervals[i]);\n            else\n                res.back()[1]=max(res.back()[1],intervals[i][1]);\n        }\n        return res;\n        \n    }\n};
[]