
Binary searching for the right lesson...

Binary searching for the right lesson...
Walk through your approach like an interview
Given clips [start, end] and target duration T, find minimum clips to cover [0, T]. Return -1 if impossible.
clips = [[0,2], [4,6], [8,10], [1,9], [1,5], [5,9]], T = 103