],[4,5],[5,7],[6,9]], T = 9
Output: 3
Explanation:
We can take clips [0,4], [4,7], and [6,9]....举个例子,如 clips = [[0,1],[0,2],[0,3],[1,2],[1,3],[1,4]],T =4。...end, clips[index][1])
index += 1
# 对于 [1,2] [1,4] 这种,更新 start 为 end,更新片段数长度...# 但不滑动,下一次当前片段会重新进入上一个 while 判断是否滑动
if index - 1 6],[0,4],[0,3],[6,7],[1,3],[4,7],[1,4],[2,5],[2,6],[3,4],[4,5],[5,7],[6,9]]
print(Solution