Problem 2279 · Medium

Maximum Bags With Full Capacity of Rocks

Sort bags by how many rocks they still need and fill the cheapest ones first.

Open the interactive visualisation