Interview Bootcamp
Ask Author
Back to course home

0% completed

Vote For New Content
I seem to be missing something when observing the solution. I understand when in...

Cj

Jul 19, 2022

I seem to be missing something when observing the solution. I understand when interval 1 is compared to interval 2, and I understand when interval 2 is compared to interval 3. But I do not see how interval 1 would be compared to interval 3. Am I missing something?

0

0

Comments
Comments
C
Cj 3 years ago

Answering my own question. As noted in the first step of the solution, with these types of problems, you must sort the intervals first. Sort by start time.