Skip to content

Glossary: Algorithms Beyond the Basics in C++

Interval

Also written: intervals

A stretch of time with a start and an end, stored as a `std::pair<int, int>` in minutes since midnight. Two intervals overlap when each starts before the other ends.

Where the book teaches it

Related terms

merging intervals