๐ฎ Greedy (Practice)
Companion to the Greedy Algorithms guide. Interval scheduling: greedily pick the most non-overlapping meetings. Edit and run the code right here โ it executes in your browser.
๐ Your turnโ
Loading editorโฆ
๐ง Challenge yourselfโ
- Return which meetings were chosen, not just the count.
- Minimum number of rooms to host all meetings.
- Prove why 'earliest finish' is optimal (exchange argument).
Continue the learning path โ Tries