(貪心) leetcode 435 Non-overlapping Intervals, 455 design cookies

思路:       class Solution { public: //自定義比較函數,按照後端點排序 static bool cmp(vector<int>& a, vector<int>& b){ return a[1] < b[1]; } int eraseOverlapIntervals(vector<vector<int>>&
相關文章
相關標籤/搜索