Challenge: Greedy Algorithms
Challenge yourself by solving a problem related to greedy algorithms.
We'll cover the following...
Let's practice what we've learned so far.
Task
We’ve been hired to store a sequence of books on shelves in a library. The order of the books is fixed by the cataloging system and cannot be changed; each shelf must store a contiguous interval of the given sequence of books. We are given two arrays, ...