Challenge: Greedy Algorithms
Explore how to implement and analyze a greedy algorithm that stores a fixed sequence of books on shelves using the fewest shelves possible. Learn to apply this approach under constraints on shelf length and book thickness, and understand its O(n) time complexity.
We'll cover the following...
We'll cover the following...
Let's practice what we have learned so far.
Task
We’ve been hired to store a sequence of ...