Skip to content

Glossary: Algorithms Beyond the Basics in JavaScript

Interval scheduling

Choosing the most non-overlapping intervals by sorting by end time and taking each one that fits. Priya uses it to fit the most bookings into the cupping room.

Where the book teaches it

Related terms

Greedy algorithmIntervalSwap argument