Problem 870 · Medium

Advantage Shuffle

Sort both sides; beat the weakest opponent when possible, otherwise sacrifice against the strongest.

Open the interactive visualisation