Do these two events overlap?
transcript
Two events. One to three, and three to five. Do they overlap? It depends on the ends.
With slot numbers, both ends count. Slot three belongs to both events. They overlap, so they join into one to five.
Minutes work differently. The end minute is free. Nine to ten ends as minute ten begins. Ten to eleven starts at ten. They only touch.
For slot numbers, the later start is at most the earlier end. For minutes, the later start is less than the earlier end. The test must match the ends.
A strict test with slot numbers is a common mistake. One to three and three to five stay as two blocks. They share slot three. The right answer is one block.
We checked every pair of ranges inside zero to five. Both tests matched a count of shared values.
Which ends count decides the answer. Full breakdown in the lecture.