Skip to content

Glossary: Coding Interviews in Rust

Interval

Also written: intervals, merge intervals, overlap

A range stored as a `(start, end)` tuple, such as Alex's delivery slots in minutes after midnight. Two overlap when the second starts before the first ends.

Where the book teaches it

Related terms

sort_by_key