Problem 1561 · Medium

Maximum Number of Coins You Can Get

Maximize your coins in triples by sorting piles and repeatedly choosing the second-largest from the top three. The visual shows the sorted piles and the chosen triples.

Open the interactive visualisation