Activity selection
Fits the most activities into one room, no two at once. Choosing the shortest, or the one that starts first, can lose; choosing the one that ends first always leaves the most time for the rest, so the activities are taken in order of when they end.
each activity's hours: a column is the hour starting at its number
- comparisons to line them up
- 0
- activities checked
- 0
step 1 of 1
Examples