Problem 2279 · Medium
Sort bags by how many rocks they still need and fill the cheapest ones first.
Open the interactive visualisation