Problem 2483 · Medium

Minimum Penalty for a Shop

Start with every customer penalised and move the closing hour one customer at a time, adjusting the penalty as each customer passes.

Open the interactive visualisation