首页 > TAG信息列表 > intervalsSize
贪心算法-435
1 int cmp(const void ** a, const void **b) 2 { 3 int **p = (int **)a, **q = (int **)b; 4 return (*p)[1] - (*q)[1]; 5 } 6 7 int eraseOverlapIntervals(int** intervals, int intervalsSize, int* intervalsColSize){ 8 qsort(intervals, interv