#1589. 完善程序-区间排序与匹配

完善程序-区间排序与匹配

image

1、1处应该填( )。 {{ select(1) }}

  • clips[j].start < clips[j-1].start || (clips[j].start == clips[j-1].start && clips[j].end > clips[j-1].end)
  • clips[j].start > clips[j-1].start
  • clips[j].end > clips[j-1].end
  • clips[j].start < clips[j-1].start && clips[j].end > clips[j-1].end

2、2处应该填( )。 {{ select(2) }}

  • farthest
  • clips[i].start
  • current
  • i

3、3处应该填( )。 {{ select(3) }}

  • farthest == current
  • farthest <= current
  • i >= n
  • current > T

4、4处应该填( )。 {{ select(4) }}

  • farthest = 0
  • i= 0
  • current = 0
  • i--

5、5处应该填( )。 {{ select(5) }}

  • farthest = current
  • current = farthest
  • i++
  • 无需代码