Problem 2218 · Hard

Maximum Value of K Coins From Piles

Take exactly k coins from pile tops with the greatest total value.

Open the interactive visualisation