Problem 546 · Hard

Remove Boxes

Given boxes of different colours, repeatedly remove a run of k continuous boxes of the same colour for k*k points. Return the maximum total points obtainable.

Open the interactive visualisation