/* * function Interval(a, b){ * this.start = a || 0; * this.end = b || 0; * } */ /** * * @param intervals Interval类一维数组 * @return Interval类一维数组 */ function merge(intervals) { let result = []; if(intervals.length>=1) { intervals.sort((a,b) => {return a.start-b.start;}) ...